This repository was archived by the owner on Sep 17, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class AutotagAMIWorker extends AutotagEC2Worker {
2020 resourceIds . push ( this . getImageId ( ) ) ;
2121
2222 this . imageSnapshot = await this . getImageSnapshot ( ) ;
23- if ( this . imageSnapshot ) resourceIds . push ( this . getImageSnapshotId ( ) ) ;
23+ if ( this . imageSnapshot ) resourceIds . push ( this . getImageSnapshotId ( ) ) ;
2424
2525 await this . tagEC2Resources ( resourceIds ) ;
2626 }
@@ -34,12 +34,12 @@ class AutotagAMIWorker extends AutotagEC2Worker {
3434 const delay = time => result => new Promise ( resolve => setTimeout ( ( ) => resolve ( result ) , time ) ) ;
3535 let imageSnapshotDescription ;
3636
37- if ( this . getEventName ( ) === 'RegisterImage' ) {
37+ if ( this . getEventName ( ) === 'RegisterImage' ) {
3838 // the image was created from an existing snapshot so there is no new snapshot to tag
3939 return false ;
40- } else if ( this . getEventName ( ) === 'CopyImage' ) {
40+ } else if ( this . getEventName ( ) === 'CopyImage' ) {
4141 imageSnapshotDescription = `Copied for DestinationAmi ${ this . getImageId ( ) } *` ;
42- } else if ( this . getEventName ( ) === 'CreateImage' ) {
42+ } else if ( this . getEventName ( ) === 'CreateImage' ) {
4343 imageSnapshotDescription = `Created by CreateImage(*) for ${ this . getImageId ( ) } *` ;
4444 } else {
4545 console . log ( `Error: event name '${ this . getEventName ( ) } ' not recognized, unable to tag associated snapshot` ) ;
You can’t perform that action at this time.
0 commit comments