Skip to content

Commit 5b9c967

Browse files
committed
AWS delete error when no instances
1 parent fe1090b commit 5b9c967

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

iterative/aws/provider.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,6 @@ func ResourceMachineDelete(ctx context.Context, d *schema.ResourceData, m interf
277277
},
278278
},
279279
})
280-
if err != nil {
281-
return err
282-
}
283280
if len(descResult.Reservations) > 0 && len(descResult.Reservations[0].Instances) > 0 {
284281
instanceID := *descResult.Reservations[0].Instances[0].InstanceId
285282
_, err = svc.TerminateInstances(&ec2.TerminateInstancesInput{

0 commit comments

Comments
 (0)