From d30e6c36971ca5b7dcd57b10a1344d4ff6c1907b Mon Sep 17 00:00:00 2001 From: william Date: Tue, 2 Feb 2016 12:04:58 -0500 Subject: [PATCH] runner --- lxc.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lxc.js b/lxc.js index 4c58263..002677c 100644 --- a/lxc.js +++ b/lxc.js @@ -24,7 +24,9 @@ var lxc = { destroy: function(name, callback){ return sysExec('lxc-destroy -n '+ name, function(data){ - var args = [!!data.match(/Destroyed container/)].concat(Array.prototype.slice.call(arguments, 1)); + var info = data.match(/Destroyed container/); + console.log('destroy info:' info); + var args = [true].concat(Array.prototype.slice.call(arguments, 1)); callback.apply(this, args); }); },