provider/aws: correct && -> || mistake
Thanks for the sanity check, @aparrentlymart and @dwradcliffe :)
This commit is contained in:
parent
8eaee5e957
commit
dcaf0f8b87
|
@ -1074,7 +1074,7 @@ func awsTerminateInstance(conn *ec2.EC2, id string) error {
|
|||
}
|
||||
|
||||
func iamInstanceProfileArnToName(ip *ec2.IamInstanceProfile) string {
|
||||
if ip == nil && ip.Arn == nil {
|
||||
if ip == nil || ip.Arn == nil {
|
||||
return ""
|
||||
}
|
||||
return strings.Split(*ip.Arn, "/")[1]
|
||||
|
|
Loading…
Reference in New Issue