formating
This commit is contained in:
parent
c99f3e8877
commit
2948087724
2
lxc.js
2
lxc.js
@ -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);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user