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
@@ -82,15 +81,9 @@ export class Down extends Task<void> {
82
81
. filter ( ( resource ) => ! nonTargets . includes ( resource . type ) )
83
82
. map ( ( resource ) => resource . urn ) ;
84
83
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 } ) ;
86
85
}
87
86
}
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
- }
94
87
} catch ( e ) {
95
88
console . log ( e ) ;
96
89
throw e ;
You can’t perform that action at this time.
0 commit comments