From 905465408d045b524d3ff8e483ad404899104651 Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Mon, 9 May 2016 13:31:25 +0000 Subject: [PATCH] Make gssh force use cache for extra wsmonitor / abuse commands after the first list --- node_modules/c9/gce.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/node_modules/c9/gce.js b/node_modules/c9/gce.js index 7b939527..4a585b70 100644 --- a/node_modules/c9/gce.js +++ b/node_modules/c9/gce.js @@ -24,12 +24,15 @@ function runCommand(pattern, command, options, callback) { return runCommand(pattern, command, {}, options); } - var parallel = "" + var optionsArray = []; if (options.parallel) { - parallel = " -P" + optionsArray.push("-P"); + } + if (options.cacheOnly) { + optionsArray.push("--cache-only"); } - var gsshCommand = GSSH + " " + parallel + " " + pattern + " '" + command + "'"; + var gsshCommand = GSSH + " " + optionsArray.join(" ") + " " + pattern + " '" + command + "'"; childProcess.exec(gsshCommand, function (err, stdout) { return callback(err, stdout); });