mirror of https://github.com/kubernetes/kops.git
Merge pull request #11575 from justinsb/ipv6_journey
Avoid error when first creating VPC with IPv6
This commit is contained in:
commit
e7b6388246
|
|
@ -42,6 +42,11 @@ type VPCAmazonIPv6CIDRBlock struct {
|
|||
func (e *VPCAmazonIPv6CIDRBlock) Find(c *fi.Context) (*VPCAmazonIPv6CIDRBlock, error) {
|
||||
cloud := c.Cloud.(awsup.AWSCloud)
|
||||
|
||||
// If the VPC doesn't (yet) exist, there is no association
|
||||
if e.VPC.ID == nil {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
vpc, err := cloud.DescribeVPC(aws.StringValue(e.VPC.ID))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Reference in New Issue