Skip to content

Commit bdd9f9f

Browse files
Merge pull request #221 from nitrictech/feature/aws-clean-down
fix: Don't dump results of down command aws
2 parents 3fbd6de + 1f04ea3 commit bdd9f9f

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
@@ -83,15 +82,9 @@ export class Down extends Task<void> {
8382
.filter((resource) => !resource.urn.match('/nitric:site:S3/g') || !nonTargets.includes(resource.type))
8483
.map((resource) => resource.urn);
8584
if (targets.length > 0) {
86-
res = await pulumiStack.destroy({ onOutput: this.update.bind(this), target: targets });
85+
await pulumiStack.destroy({ onOutput: this.update.bind(this), target: targets });
8786
}
8887
}
89-
if (res.summary && res.summary.resourceChanges) {
90-
const changes = Object.entries(res.summary.resourceChanges)
91-
.map((entry) => entry.join(': '))
92-
.join(', ');
93-
this.update(changes);
94-
}
9588
} catch (e) {
9689
console.log(e);
9790
throw e;

0 commit comments

Comments
 (0)