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
1 changed files with 2 additions and 1 deletions

View File

@ -202,7 +202,8 @@ CLI.prototype.init = function (opts, args, callback) {
var specifiedInsecureOpt = opts._order.filter(
function (opt) { return opt.key === 'insecure'; }).length > 0;
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');
}
if (opts.J) {