graph mainly rebuilt in javascript
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user