mirror of https://github.com/kubernetes/kops.git
VPC cleanup: recognize the error code for concurrent VPC deletion
Hit this when I was cleaning up my VPCs manually.
This commit is contained in:
parent
4ca73f8d85
commit
49b40c9150
|
@ -39,6 +39,11 @@ func DeleteVPC(cloud fi.Cloud, r *resources.Resource) error {
|
|||
}
|
||||
_, err := c.EC2().DeleteVpc(request)
|
||||
if err != nil {
|
||||
if awsup.AWSErrorCode(err) == "InvalidVpcID.NotFound" {
|
||||
// Concurrently deleted
|
||||
return nil
|
||||
}
|
||||
|
||||
if IsDependencyViolation(err) {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue