From 3472b0dc6d562d0d22f3bd1d88c73e3781b93603 Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Fri, 15 Dec 2017 01:04:33 -0500 Subject: [PATCH] protokube: fix logging / logic around cluster-id Remove superfluous if statement --- protokube/cmd/protokube/main.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/protokube/cmd/protokube/main.go b/protokube/cmd/protokube/main.go index d599f7eb27..b902a75f8b 100644 --- a/protokube/cmd/protokube/main.go +++ b/protokube/cmd/protokube/main.go @@ -145,11 +145,9 @@ func run() error { } if clusterID == "" { - if clusterID == "" { - return fmt.Errorf("cluster-id is required (cannot be determined from cloud)") - } - glog.Infof("Setting cluster-id from cloud: %s", clusterID) + return fmt.Errorf("cluster-id is required (cannot be determined from cloud)") } + glog.Infof("cluster-id: %s", clusterID) if internalIP == nil { glog.Errorf("Cannot determine internal IP")