From 5bf78491ff9a5989afdcc0de57d43f80f33dcb93 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Tue, 3 Nov 2015 14:39:18 -0800 Subject: [PATCH] Fix bug with 'CLI.tritonapi' getter creating a TritonApi client multiple times. --- lib/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli.js b/lib/cli.js index a29c30f..2e9236e 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -219,7 +219,7 @@ CLI.prototype.init = function (opts, args, callback) { this.configDir = CONFIG_DIR; this.__defineGetter__('tritonapi', function () { - if (self._triton === undefined) { + if (self._tritonapi === undefined) { var config = mod_config.loadConfig({ configDir: self.configDir });