Reduce log noise when aws cloud cannot find public-ip4 metadata

pull/6/head
Derek Carr 2017-01-31 17:13:15 -05:00
parent 722c8b065a
commit 6d73112d5b
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ import (
"sync"
"time"
"gopkg.in/gcfg.v1"
gcfg "gopkg.in/gcfg.v1"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
@ -904,7 +904,7 @@ func (c *Cloud) NodeAddresses(name types.NodeName) ([]v1.NodeAddress, error) {
if err != nil {
//TODO: It would be nice to be able to determine the reason for the failure,
// but the AWS client masks all failures with the same error description.
glog.V(2).Info("Could not determine public IP from AWS metadata.")
glog.V(4).Info("Could not determine public IP from AWS metadata.")
} else {
addresses = append(addresses, v1.NodeAddress{Type: v1.NodeExternalIP, Address: externalIP})
}