Merge pull request #6418 from willmao/fix-vpc-cleanup-issue
fix alicloud builder vpc cleanup issue
This commit is contained in:
commit
e003b15001
|
@ -85,7 +85,8 @@ func (s *stepConfigAlicloudVPC) Cleanup(state multistep.StateBag) {
|
||||||
e, _ := err.(*common.Error)
|
e, _ := err.(*common.Error)
|
||||||
if (e.Code == "DependencyViolation.Instance" || e.Code == "DependencyViolation.RouteEntry" ||
|
if (e.Code == "DependencyViolation.Instance" || e.Code == "DependencyViolation.RouteEntry" ||
|
||||||
e.Code == "DependencyViolation.VSwitch" ||
|
e.Code == "DependencyViolation.VSwitch" ||
|
||||||
e.Code == "DependencyViolation.SecurityGroup") && time.Now().Before(timeoutPoint) {
|
e.Code == "DependencyViolation.SecurityGroup" ||
|
||||||
|
e.Code == "Forbbiden") && time.Now().Before(timeoutPoint) {
|
||||||
time.Sleep(1 * time.Second)
|
time.Sleep(1 * time.Second)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue