Recognize pending EC2 instances as needed deletion

They should be deleted as they will presumably be running shortly.

Also, this function is used from `kops dump cluster` where presumably
instances are more likely to be pending.
This commit is contained in:
justinsb 2021-09-18 16:10:29 -04:00
parent 7f7a78a285
commit fc04d91bc7
1 changed files with 1 additions and 1 deletions

View File

@ -394,7 +394,7 @@ func ListInstances(cloud fi.Cloud, clusterName string) ([]*resources.Resource, e
case "terminated", "shutting-down": case "terminated", "shutting-down":
continue continue
case "running", "stopped": case "running", "stopped", "pending":
// We need to delete // We need to delete
klog.V(4).Infof("instance %q has state=%q", id, stateName) klog.V(4).Infof("instance %q has state=%q", id, stateName)