cloud/awscloud: fix another nilpointer in maintenance functions
This commit is contained in:
parent
73536b7743
commit
4afcd8c3fd
1 changed files with 4 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue