Fix bug where error would occur when fetching all containers and would not be reported

This commit is contained in:
Jeffrey Morgan 2015-06-18 12:32:03 -07:00
parent 597dccc647
commit 9622fdb03d
1 changed files with 4 additions and 0 deletions

View File

@ -137,6 +137,10 @@ export default {
}
async.map(containers, (container, callback) => {
this.client.getContainer(container.Id).inspect((error, container) => {
if (error) {
callback(error);
return;
}
container.Name = container.Name.replace('/', '');
callback(null, container);
});