many changes from testing

This commit is contained in:
Dave Horton
2020-02-22 11:06:39 -05:00
parent 802cc1944f
commit 4bd9e015b5
10 changed files with 131 additions and 46 deletions

View File

@@ -11,7 +11,7 @@ module.exports = (logger) => {
assert.ok(process.env.JAMBONES_SBCS, 'missing JAMBONES_SBCS env var');
const sbcs = process.env.JAMBONES_SBCS
.split(',')
.map((sbc) => `sip:${sbc.trim()}`);
.map((sbc) => sbc.trim());
assert.ok(sbcs.length, 'JAMBONES_SBCS env var is empty or misconfigured');
logger.info({sbcs}, 'SBC inventory');
@@ -43,7 +43,7 @@ module.exports = (logger) => {
for (const sbc of sbcs) {
try {
const req = await srf.request({
uri: sbc,
uri: `sip:${sbc}`,
method: 'OPTIONS',
headers: {
'X-FS-Status': 'open'