Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 8291c71

Browse files
Merge pull request #5 from aksgupta14/urlFix
Fix for URL not working and thus servers were not getting written.
2 parents f1b8e3a + aaee452 commit 8291c71

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

lib/commands/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = function () {
1919
};
2020

2121
function downloadServerConfig(cb) {
22-
exec('curl -s http://labs-git.usersys.redhat.com/manager/api/servers.json', function (error, body) {
22+
fs.readFile(path.join(__dirname, "../../", "servers.json"), "utf8", function (error, body) {
2323
if (error) {
2424
console.error('Errored downloading rc file');
2525
process.exit(1);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "accessproxy",
3-
"version": "0.6.5",
3+
"version": "0.6.6",
44
"main": "index.js",
55
"description": "A proxy for local access labs development",
66
"homepage": "https://github.com/redhataccess/accessproxy",

servers.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
3+
"fte": "access.devgssfte.devlab.phx1.redhat.com",
4+
"ci": "access.devgssci.devlab.phx1.redhat.com",
5+
"qa": "access.qa.redhat.com",
6+
"stage": "access.stage.redhat.com",
7+
"prod": "access.redhat.com"
8+
9+
}

0 commit comments

Comments
 (0)