Skip to content

Commit

Permalink
fix(cli): wrong account used when containers are pushed, a followup f…
Browse files Browse the repository at this point in the history
…rom aws#7022
  • Loading branch information
bigkraig committed Apr 13, 2021
1 parent 81b0ef6 commit 4535e42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class ContainerImageAssetHandler implements IAssetHandler {
public async publish(): Promise<void> {
const destination = await replaceAwsPlaceholders(this.asset.destination, this.host.aws);
const ecr = await this.host.aws.ecrClient(destination);
const account = (await this.host.aws.discoverCurrentAccount()).accountId;
const account = async () => (await this.host.aws.discoverCurrentAccount())?.accountId;
const repoUri = await repositoryUri(ecr, destination.repositoryName);

if (!repoUri) {
Expand Down

0 comments on commit 4535e42

Please sign in to comment.