ccm: make missing --cloud-provider fatal

pull/6/head
Cole Mickens 2017-10-27 10:55:39 -07:00
parent 91dc0ca339
commit 1675f025ea
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ func resyncPeriod(s *options.CloudControllerManagerServer) func() time.Duration
// Run runs the ExternalCMServer. This should never exit.
func Run(s *options.CloudControllerManagerServer) error {
if s.CloudProvider == "" {
glog.Errorf("--cloud-provider cannot be empty")
glog.Fatalf("--cloud-provider cannot be empty")
}
cloud, err := cloudprovider.InitCloudProvider(s.CloudProvider, s.CloudConfigFile)