Skip to content

Commit

Permalink
fix(pulumi): fix pulumi stack tag rm error
Browse files Browse the repository at this point in the history
  • Loading branch information
theoribeiro authored and shumailxyz committed Jun 6, 2023
1 parent 3bc1137 commit 59a0540
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions plugins/pulumi/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,16 @@ export async function getStackVersionTag({ log, ctx, provider, module }: PulumiP

// TODO: Use REST API instead of calling the CLI here.
export async function clearStackVersionTag({ log, ctx, provider, module }: PulumiParams): Promise<void> {
await pulumi(ctx, provider).stdout({
log,
args: ["stack", "tag", "rm", stackVersionKey],
env: ensureEnv({ log, ctx, provider, module }),
cwd: getModuleStackRoot(module),
})
try {
await pulumi(ctx, provider).stdout({
log,
args: ["stack", "tag", "rm", stackVersionKey],
env: ensureEnv({ log, ctx, provider, module }),
cwd: getModuleStackRoot(module),
})
} catch (err) {
log.debug(err.message)
}
}

export function getStackName(module: PulumiModule): string {
Expand Down

0 comments on commit 59a0540

Please sign in to comment.