From 6df6de2ffe986f8fd2c8f9132cb6e78e3bae2660 Mon Sep 17 00:00:00 2001 From: william Date: Fri, 29 Jan 2016 16:39:48 -0500 Subject: [PATCH] stop --- lxc.js | 4 ++-- routes/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lxc.js b/lxc.js index eabc052..274dc73 100644 --- a/lxc.js +++ b/lxc.js @@ -71,8 +71,8 @@ module.exports = function(config){ }); }; - obj.stop = function(name, cbComplete, cbData){ - sysExec('lxc-stop -n '+ name, cbComplete, cbData); + obj.stop = function(name, callback){ + sysExec('lxc-stop -n '+ name, callback); }; diff --git a/routes/index.js b/routes/index.js index 1fbdc3b..6a8e95c 100644 --- a/routes/index.js +++ b/routes/index.js @@ -36,7 +36,7 @@ router.get('/live/:template/:name', function(req, res, next){ }); router.get('/stop/:name', function(req, res, next){ - lxc.stop(req.params.name, null, function(data, message){ + lxc.stop(req.params.name, function(data, message){ if(data){ res.json({status: 500, name: req.params.name, message: message}); }else{