graph mainly rebuilt in javascript
This commit is contained in:
1 parent
f6561405df
commit
d15f647ccd
2 files changed
+123
-7
No files matched your search
@@ -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