Skip to content

Commit

Permalink
cloud/awscloud: fix another nilpointer in maintenance functions
Browse files Browse the repository at this point in the history
  • Loading branch information
croissanne committed Oct 25, 2024
1 parent 73536b7 commit 4afcd8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/cloud/awscloud/maintenance.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ func (a *AWS) DescribeInstancesByTag(tagKey, tagValue string) ([]ec2types.Reserv
},
},
)
return res.Reservations, err
if err != nil {
return nil, err
}
return res.Reservations, nil
}

func (a *AWS) TerminateInstances(instanceIDs []string) error {
Expand Down

0 comments on commit 4afcd8c

Please sign in to comment.