Selaa lähdekoodia

flip conditional for readability

Signed-off-by: Matt Ray <github@mattray.dev>
Matt Ray 2 vuotta sitten
vanhempi
sitoutus
f9141dfa5e
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      pkg/cloud/config/watcher.go

+ 3 - 3
pkg/cloud/config/watcher.go

@@ -241,10 +241,10 @@ type MultiCloudWatcher struct {
 func (mcw *MultiCloudWatcher) GetConfigs() []cloud.KeyedConfig {
 	var multiConfigPath string
 
-	if !env.IsKubernetesEnabled() {
-		multiConfigPath = env.GetCloudCostConfigPath()
-	} else {
+	if env.IsKubernetesEnabled() {
 		multiConfigPath = path.Join(env.GetConfigPathWithDefault("/var/configs"), cloudIntegrationSecretPath)
+	} else {
+		multiConfigPath = env.GetCloudCostConfigPath()
 	}
 	exists, err := fileutil.FileExists(multiConfigPath)
 	if err != nil {