balena deploy: Fix "access denied" pushing images to registry

Change-type: patch
This commit is contained in:
Paulo Castro 2020-05-25 16:52:58 +01:00
parent 3cb184c8af
commit ba0024645d

View File

@ -588,9 +588,7 @@ async function getTokenForPreviousRepos(
const { authorizePush, getPreviousRepos } = await import('./compose');
const sdk = getBalenaSdk();
const previousRepos = await getPreviousRepos(sdk, docker, logger, appId);
if (!previousRepos || previousRepos.length === 0) {
return '';
}
const token = await authorizePush(
sdk,
apiEndpoint,