mirror of https://github.com/docker/docs.git
Fix bug where error would occur when fetching all containers and would not be reported
This commit is contained in:
parent
597dccc647
commit
9622fdb03d
|
@ -137,6 +137,10 @@ export default {
|
||||||
}
|
}
|
||||||
async.map(containers, (container, callback) => {
|
async.map(containers, (container, callback) => {
|
||||||
this.client.getContainer(container.Id).inspect((error, container) => {
|
this.client.getContainer(container.Id).inspect((error, container) => {
|
||||||
|
if (error) {
|
||||||
|
callback(error);
|
||||||
|
return;
|
||||||
|
}
|
||||||
container.Name = container.Name.replace('/', '');
|
container.Name = container.Name.replace('/', '');
|
||||||
callback(null, container);
|
callback(null, container);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue