protokube: fix logging / logic around cluster-id

Remove superfluous if statement
This commit is contained in:
Justin Santa Barbara 2017-12-15 01:04:33 -05:00
parent 3a10a8c7cb
commit 3472b0dc6d
1 changed files with 2 additions and 4 deletions

View File

@ -145,11 +145,9 @@ func run() error {
} }
if clusterID == "" { if clusterID == "" {
if clusterID == "" { return fmt.Errorf("cluster-id is required (cannot be determined from cloud)")
return fmt.Errorf("cluster-id is required (cannot be determined from cloud)")
}
glog.Infof("Setting cluster-id from cloud: %s", clusterID)
} }
glog.Infof("cluster-id: %s", clusterID)
if internalIP == nil { if internalIP == nil {
glog.Errorf("Cannot determine internal IP") glog.Errorf("Cannot determine internal IP")