mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
AWS: Only warn about nameless instances if they are running
Otherwise this is just confusing logspam. Fix #20912
This commit is contained in:
parent
d089fa8030
commit
7e69426b8b
@ -2344,7 +2344,9 @@ func (a *AWSCloud) getInstancesByNodeNames(nodeNames []string) ([]*ec2.Instance,
|
||||
for _, instance := range allInstances {
|
||||
nodeName := aws.StringValue(instance.PrivateDnsName)
|
||||
if nodeName == "" {
|
||||
glog.V(2).Infof("ignoring ec2 instance with no PrivateDnsName: %q", aws.StringValue(instance.InstanceId))
|
||||
if isAlive(instance) {
|
||||
glog.V(2).Infof("ignoring ec2 instance with no PrivateDnsName: %q", aws.StringValue(instance.InstanceId))
|
||||
}
|
||||
continue
|
||||
}
|
||||
i, found := nodeNamesMap[nodeName]
|
||||
|
Loading…
Reference in New Issue
Block a user