Skip to content

Commit

Permalink
skip instances on validation error
Browse files Browse the repository at this point in the history
if an instance is already being deleted/abandoned/not a member just continue
  • Loading branch information
Freyert committed Sep 26, 2022
1 parent e767044 commit 28b92e7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ func (client *autoscalingGceClientV1) waitForOp(operation *gce.Operation, projec
func (client *autoscalingGceClientV1) DeleteInstances(migRef GceRef, instances []GceRef) error {
registerRequest("instance_group_managers", "delete_instances")
req := gce.InstanceGroupManagersDeleteInstancesRequest{
Instances: []string{},
Instances: []string{},
SkipInstancesOnValidationError: true,
}
for _, i := range instances {
req.Instances = append(req.Instances, GenerateInstanceUrl(i))
Expand Down

0 comments on commit 28b92e7

Please sign in to comment.