osbuild-service-maintenance: adapt to aws sdk v2
This commit is contained in:
parent
16c9a7be88
commit
c87cbe0cbc
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ func AWSCleanup(maxConcurrentRequests int, dryRun bool, accessKeyID, accessKey s
|
|||
defer sem.Release(1)
|
||||
defer wg.Done()
|
||||
|
||||
err := a.RemoveSnapshotAndDeregisterImage(images[i])
|
||||
err := a.RemoveSnapshotAndDeregisterImage(&images[i])
|
||||
if err != nil {
|
||||
logrus.Errorf("Cleanup for image %s in region %s failed: %v", *images[i].ImageId, region, err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue