From 1675f025ea295469e722f1417ed0764c33965bc7 Mon Sep 17 00:00:00 2001 From: Cole Mickens Date: Fri, 27 Oct 2017 10:55:39 -0700 Subject: [PATCH] ccm: make missing --cloud-provider fatal --- cmd/cloud-controller-manager/app/controllermanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cloud-controller-manager/app/controllermanager.go b/cmd/cloud-controller-manager/app/controllermanager.go index 29591b0f00b..c93da56dad5 100644 --- a/cmd/cloud-controller-manager/app/controllermanager.go +++ b/cmd/cloud-controller-manager/app/controllermanager.go @@ -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)