From e145090c7984d6f0b1232d880a0a115906282c1d Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Mon, 31 Aug 2015 12:31:06 -0700 Subject: [PATCH] Fix handling of SDC_TESTING envvar (really really this time) --- lib/cli.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cli.js b/lib/cli.js index 40cbce8..50d35ee 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -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) {