This repository was archived by the owner on Sep 17, 2024. It is now read-only.
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class AutotagAMIWorker extends AutotagEC2Worker {
20
20
resourceIds . push ( this . getImageId ( ) ) ;
21
21
22
22
this . imageSnapshot = await this . getImageSnapshot ( ) ;
23
- if ( this . imageSnapshot ) resourceIds . push ( this . getImageSnapshotId ( ) ) ;
23
+ if ( this . imageSnapshot ) resourceIds . push ( this . getImageSnapshotId ( ) ) ;
24
24
25
25
await this . tagEC2Resources ( resourceIds ) ;
26
26
}
@@ -34,12 +34,12 @@ class AutotagAMIWorker extends AutotagEC2Worker {
34
34
const delay = time => result => new Promise ( resolve => setTimeout ( ( ) => resolve ( result ) , time ) ) ;
35
35
let imageSnapshotDescription ;
36
36
37
- if ( this . getEventName ( ) === 'RegisterImage' ) {
37
+ if ( this . getEventName ( ) === 'RegisterImage' ) {
38
38
// the image was created from an existing snapshot so there is no new snapshot to tag
39
39
return false ;
40
- } else if ( this . getEventName ( ) === 'CopyImage' ) {
40
+ } else if ( this . getEventName ( ) === 'CopyImage' ) {
41
41
imageSnapshotDescription = `Copied for DestinationAmi ${ this . getImageId ( ) } *` ;
42
- } else if ( this . getEventName ( ) === 'CreateImage' ) {
42
+ } else if ( this . getEventName ( ) === 'CreateImage' ) {
43
43
imageSnapshotDescription = `Created by CreateImage(*) for ${ this . getImageId ( ) } *` ;
44
44
} else {
45
45
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