mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
AWS: Richer log message when metadata fails
Not a resolution, but should at least help determine the issue. Issue #41904
This commit is contained in:
parent
4a8c245e6e
commit
9d8a721bb9
@ -963,7 +963,7 @@ func (c *Cloud) NodeAddresses(name types.NodeName) ([]v1.NodeAddress, error) {
|
||||
|
||||
internalIP, err := c.metadata.GetMetadata("local-ipv4")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, fmt.Errorf("error querying AWS metadata for %q: %v", "local-ipv4", err)
|
||||
}
|
||||
addresses = append(addresses, v1.NodeAddress{Type: v1.NodeInternalIP, Address: internalIP})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user