mirror of https://github.com/kubernetes/kops.git
protokube: fix logging / logic around cluster-id
Remove superfluous if statement
This commit is contained in:
parent
3a10a8c7cb
commit
3472b0dc6d
|
|
@ -144,12 +144,10 @@ func run() error {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
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")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue