internal/awscloud: use AWS.TerminateInstancesEC2() from osbuild/images
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
74d2edb772
commit
e7d8431489
4 changed files with 2 additions and 18 deletions
|
|
@ -154,7 +154,7 @@ func terminateOrphanedSecureInstances(a *awscloud.AWS, dryRun bool) error {
|
|||
log.Printf("Cleaning up executor instances: %v", instanceIDs)
|
||||
if !dryRun {
|
||||
if len(instanceIDs) > 0 {
|
||||
err = a.TerminateInstances(instanceIDs)
|
||||
_, err = a.TerminateInstancesEC2(instanceIDs, 0)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Unable to terminate secure instances: %w", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue