formating

This commit is contained in:
William Mantly 2016-01-29 17:38:40 -05:00
parent c99f3e8877
commit 2948087724

2
lxc.js
View File

@ -28,7 +28,6 @@ module.exports = function(config){
}; };
obj.startEphemeral = function(name, base_name, callback){ obj.startEphemeral = function(name, base_name, callback){
var output = ''; var output = '';
sysExec('lxc-start-ephemeral -o '+base_name+ ' -n '+name +' --union-type overlayfs -d', function(data){ sysExec('lxc-start-ephemeral -o '+base_name+ ' -n '+name +' --union-type overlayfs -d', function(data){
if(data.match("doesn't exist.")) return callback({status: 500, error: "doesn't exist."}); if(data.match("doesn't exist.")) return callback({status: 500, error: "doesn't exist."});
@ -43,7 +42,6 @@ module.exports = function(config){
sysExec('lxc-stop -n '+ name, callback); sysExec('lxc-stop -n '+ name, callback);
}; };
obj.freeze = function(name, cbComplete, cbData){ obj.freeze = function(name, cbComplete, cbData){
sysExec('lxc-freeze -n '+name, cbComplete, cbData); sysExec('lxc-freeze -n '+name, cbComplete, cbData);
}; };