Skip to content

Commit 1f04ea3

Browse files
fix: Don't dump results of down command aws
1 parent 836f9ed commit 1f04ea3

File tree

1 file changed

+2
-9
lines changed
  • packages/plugins/aws/src/tasks/down

1 file changed

+2
-9
lines changed

packages/plugins/aws/src/tasks/down/index.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,8 @@ export class Down extends Task<void> {
6969
program: NO_OP,
7070
});
7171

72-
let res;
7372
if (this.destroy) {
74-
res = await pulumiStack.destroy({ onOutput: this.update.bind(this) });
73+
await pulumiStack.destroy({ onOutput: this.update.bind(this) });
7574
} else {
7675
const deployment = (await pulumiStack.exportStack()).deployment as Deployment;
7776
const nonTargets = protectedTargets //Possible to filter the protected targets in the future
@@ -82,15 +81,9 @@ export class Down extends Task<void> {
8281
.filter((resource) => !nonTargets.includes(resource.type))
8382
.map((resource) => resource.urn);
8483
if (targets.length > 0) {
85-
res = await pulumiStack.destroy({ onOutput: this.update.bind(this), target: targets });
84+
await pulumiStack.destroy({ onOutput: this.update.bind(this), target: targets });
8685
}
8786
}
88-
if (res.summary && res.summary.resourceChanges) {
89-
const changes = Object.entries(res.summary.resourceChanges)
90-
.map((entry) => entry.join(': '))
91-
.join(', ');
92-
this.update(changes);
93-
}
9487
} catch (e) {
9588
console.log(e);
9689
throw e;

0 commit comments

Comments
 (0)