Fix handling of SDC_TESTING envvar (really really this time)

This commit is contained in:
Trent Mick 2015-08-31 12:31:06 -07:00
parent 1b2ed0758e
commit e145090c79

View File

@ -202,7 +202,8 @@ CLI.prototype.init = function (opts, args, callback) {
var specifiedInsecureOpt = opts._order.filter( var specifiedInsecureOpt = opts._order.filter(
function (opt) { return opt.key === 'insecure'; }).length > 0; function (opt) { return opt.key === 'insecure'; }).length > 0;
if (!specifiedInsecureOpt && process.env.SDC_TESTING) { if (!specifiedInsecureOpt && process.env.SDC_TESTING) {
opts.insecure = common.boolFromString(process.env.SDC_TESTING, envProfile.insecure = common.boolFromString(
process.env.SDC_TESTING,
false, '"SDC_TESTING" envvar'); false, '"SDC_TESTING" envvar');
} }
if (opts.J) { if (opts.J) {