File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
packages/plugins/aws/src/tasks/down Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,8 @@ export class Down extends Task<void> {
69
69
program : NO_OP ,
70
70
} ) ;
71
71
72
- let res ;
73
72
if ( this . destroy ) {
74
- res = await pulumiStack . destroy ( { onOutput : this . update . bind ( this ) } ) ;
73
+ await pulumiStack . destroy ( { onOutput : this . update . bind ( this ) } ) ;
75
74
} else {
76
75
const deployment = ( await pulumiStack . exportStack ( ) ) . deployment as Deployment ;
77
76
const nonTargets = protectedTargets //Possible to filter the protected targets in the future
@@ -83,15 +82,9 @@ export class Down extends Task<void> {
83
82
. filter ( ( resource ) => ! resource . urn . match ( '/nitric:site:S3/g' ) || ! nonTargets . includes ( resource . type ) )
84
83
. map ( ( resource ) => resource . urn ) ;
85
84
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 } ) ;
87
86
}
88
87
}
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
- }
95
88
} catch ( e ) {
96
89
console . log ( e ) ;
97
90
throw e ;
You can’t perform that action at this time.
0 commit comments