Don't retry on instance group not found

This commit is contained in:
bprashanth 2016-11-22 18:31:34 -08:00
parent d7fb15d972
commit d2312229dd

View file

@ -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 {