mirror of https://github.com/k3s-io/k3s
ent
parent
71b96422f4
commit
4c588d771c
|
@ -683,7 +683,7 @@ func isAlive(instance *ec2.Instance) bool {
|
||||||
case "pending", "running":
|
case "pending", "running":
|
||||||
return true
|
return true
|
||||||
default:
|
default:
|
||||||
glog.Errorf("unknown EC2 instance state: %s", stateName)
|
glog.Errorf("Unknown EC2 instance state: %s", stateName)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -724,13 +724,13 @@ func (s *AWSCloud) getInstancesByRegex(regex string) ([]string, error) {
|
||||||
// Only return fully-ready instances when listing instances
|
// Only return fully-ready instances when listing instances
|
||||||
// (vs a query by name, where we will return it if we find it)
|
// (vs a query by name, where we will return it if we find it)
|
||||||
if orEmpty(instance.State.Name) == "pending" {
|
if orEmpty(instance.State.Name) == "pending" {
|
||||||
glog.V(2).Infof("skipping EC2 instance (pending): %s", *instance.InstanceId)
|
glog.V(2).Infof("Skipping EC2 instance (pending): %s", *instance.InstanceId)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
privateDNSName := orEmpty(instance.PrivateDnsName)
|
privateDNSName := orEmpty(instance.PrivateDnsName)
|
||||||
if privateDNSName == "" {
|
if privateDNSName == "" {
|
||||||
glog.V(2).Infof("skipping EC2 instance (no PrivateDNSName): %s",
|
glog.V(2).Infof("Skipping EC2 instance (no PrivateDNSName): %s",
|
||||||
orEmpty(instance.InstanceId))
|
orEmpty(instance.InstanceId))
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue