diff --git a/pkg/controller/controlplane/valuesprovider.go b/pkg/controller/controlplane/valuesprovider.go index c1ef420ac..d475bbeb4 100644 --- a/pkg/controller/controlplane/valuesprovider.go +++ b/pkg/controller/controlplane/valuesprovider.go @@ -765,9 +765,9 @@ func getCCMChartValues( break } } - if defaultExternalNetwork == "" { - return nil, fmt.Errorf("unable to find a default external network for metal-ccm deployment") - } + } + if defaultExternalNetwork == "" { + return nil, fmt.Errorf("unable to find a default external network for metal-ccm deployment") } }