Skip to content

Commit

Permalink
Merge pull request #12233 from zetaab/automated-cherry-pick-of-#12232…
Browse files Browse the repository at this point in the history
…-origin-release-1.22

Automated cherry pick of #12232: check does iface has associations
  • Loading branch information
k8s-ci-robot committed Aug 31, 2021
2 parents 7af2747 + 774f4d1 commit 5b17b36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upup/pkg/fi/cloudup/awsup/aws_cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -2100,7 +2100,7 @@ func GetInstanceCertificateNames(instances *ec2.DescribeInstancesOutput) (addrs
if iface.Ipv6Addresses != nil && len(iface.Ipv6Addresses) > 0 {
addrs = append(addrs, *iface.Ipv6Addresses[0].Ipv6Address)
}
if iface.Association.PublicIp != nil {
if iface.Association != nil && iface.Association.PublicIp != nil {
addrs = append(addrs, *iface.Association.PublicIp)
}
}
Expand Down

0 comments on commit 5b17b36

Please sign in to comment.