This commit is contained in:
wmantly committed 2016-02-02 12:04:58 -05:00
1 parent 8463934651
commit d30e6c3697
1 file changed
+3 -1
+3 -1
View File
@@ -24,7 +24,9 @@ var lxc = {
destroy: function(name, callback){ destroy: function(name, callback){
return sysExec('lxc-destroy -n '+ name, function(data){ 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); callback.apply(this, args);
}); });
}, },