Merge pull request #1786 from balena-io/1783-images-push-not-iterable

balena deploy: Fix "TypeError: images.push is not iterable"
This commit is contained in:
Paulo Castro 2020-04-29 16:11:44 +01:00 committed by GitHub
commit d98bc9fb06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -530,10 +530,13 @@ const getPreviousRepos = (sdk, docker, logger, appID) =>
return registry.imageName;
});
});
} else {
return [];
}
})
.catch(e => {
logger.logDebug(`Failed to access previously pushed image repo: ${e}`);
return [];
});
const authorizePush = function(