From a74d7130d7ad8a1950690a4b3f8f04bcff3bb42c Mon Sep 17 00:00:00 2001 From: william Date: Mon, 8 Feb 2016 17:03:45 -0500 Subject: [PATCH] stuff --- lxc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lxc.js b/lxc.js index 4981e24..8424af9 100644 --- a/lxc.js +++ b/lxc.js @@ -185,9 +185,9 @@ Container.prototype.info = function(callback){ }; Container.prototype.updateFromInfo = function(data){ - for(var key in Object.keys(data)){ - console.log('update key:', key); - this[key] = data[key]; + var key = Object.keys(data); + for(var i=keys.length; i--;){ + this[key[i]] = data[key[i]]; } return this;