Skip to content

Commit

Permalink
logged a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nvnyale committed Jul 8, 2022
1 parent c46b777 commit 36fa8f9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions api/orchestration_images.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,8 @@ func (o *ec2Orchestrator) deleteImage(ctx context.Context, id string) error {
SnapshotId: (s.SnapshotId),
}
if err := o.ec2Client.DeleteSnapshot(ctx, input); err != nil {
return err
//TODO: need to review the return error condition in the loop
log.Warnf("failed to delete snapshot %s: %v", aws.StringValue(s.SnapshotId), err)
}

}
return nil
}

0 comments on commit 36fa8f9

Please sign in to comment.