graph mainly rebuilt in javascript

This commit is contained in:
Marc Wäckerlin
2016-01-15 15:58:29 +00:00
parent f6561405df
commit d15f647ccd
2 changed files with 123 additions and 7 deletions

View File

@@ -27,11 +27,11 @@ module.exports = function() {
function containerinspect(error, stdout, stderr) {
console.log(error);
if (!error && !stderr) {
var res = {};
JSON.parse(stdout).forEach(function(c) {
res[c.Id] = c;
});
emit("containers", res);
// var res = {};
// JSON.parse(stdout).forEach(function(c) {
// res[c.Id] = c;
// });
emit("containers", stdout);
}
}