Commit 35d41db932182a4c0aa831a96f7f2ef1447162aa
1 parent
0c0fe6683b
Exists in
master
rc-local.json
Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff
lib/partner.js
... | ... | @@ -2,6 +2,7 @@ |
2 | 2 | |
3 | 3 | process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; |
4 | 4 | |
5 | +const fs = require('fs'); | |
5 | 6 | const url = require('url'); |
6 | 7 | const https = require('https'); |
7 | 8 | const xmlrpc = require('xmlrpc'); |
... | ... | @@ -12,7 +13,8 @@ const matrix = require('komodo-sdk/matrix'); |
12 | 13 | const pull = require('komodo-sdk/gateway/pull'); |
13 | 14 | |
14 | 15 | const st24 = require('./st24'); |
15 | -const partnerRc = require('./partner-rc.json'); | |
16 | + | |
17 | +const partnerRc = fs.existsSync(__dirname + '/../rc-local.json') ? require('../rc-local.json') : require('./partner-rc.json'); | |
16 | 18 | |
17 | 19 | if (config.partner.use_sslv3) { |
18 | 20 | https.globalAgent.options.secureProtocol = 'SSLv3_method'; |