From b94b1efdb045783df6e9ccb3d5e246904b5e3d4c Mon Sep 17 00:00:00 2001 From: ZhuPeng Date: Mon, 9 Nov 2015 14:31:46 +0800 Subject: [PATCH] Avoid log wrong information until got PublicAddress --- pkg/master/master.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/master/master.go b/pkg/master/master.go index f8425272abd..193b1acafd9 100644 --- a/pkg/master/master.go +++ b/pkg/master/master.go @@ -408,6 +408,7 @@ func setDefaults(c *Config) { glog.Fatalf("Unable to find suitable network address.error='%v' . "+ "Will try again in 5 seconds. Set the public address directly to avoid this wait.", err) time.Sleep(5 * time.Second) + continue } c.PublicAddress = hostIP glog.Infof("Will report %v as public IP address.", c.PublicAddress)