Don't retry on instance group not found
This commit is contained in:
parent
d7fb15d972
commit
d2312229dd
1 changed files with 5 additions and 2 deletions
|
@ -101,9 +101,12 @@ func (i *Instances) DeleteInstanceGroup(name string) error {
|
|||
return err
|
||||
}
|
||||
for _, zone := range zones {
|
||||
glog.Infof("Deleting instance group %v in zone %v", name, zone)
|
||||
if err := i.cloud.DeleteInstanceGroup(name, zone); err != nil {
|
||||
errs = append(errs, err)
|
||||
if !utils.IsHTTPErrorCode(err, http.StatusNotFound) {
|
||||
errs = append(errs, err)
|
||||
}
|
||||
} else {
|
||||
glog.Infof("Deleted instance group %v in zone %v", name, zone)
|
||||
}
|
||||
}
|
||||
if len(errs) == 0 {
|
||||
|
|
Loading…
Reference in a new issue