provider/aws: correct && -> || mistake

Thanks for the sanity check, @aparrentlymart and @dwradcliffe :)
This commit is contained in:
Paul Hinze 2015-09-06 12:01:57 -05:00
parent 8eaee5e957
commit dcaf0f8b87
1 changed files with 1 additions and 1 deletions

View File

@ -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]