Commit 9d8a721b authored by Justin Santa Barbara's avatar Justin Santa Barbara

AWS: Richer log message when metadata fails

Not a resolution, but should at least help determine the issue. Issue #41904
parent 4a8c245e
......@@ -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})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment