Quellcode durchsuchen

fix condition on configuration

Signed-off-by: Sean Holcomb <seanholcomb@gmail.com>
Sean Holcomb vor 3 Jahren
Ursprung
Commit
18f0af04df
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      pkg/cloud/azureprovider.go

+ 1 - 1
pkg/cloud/azureprovider.go

@@ -581,7 +581,7 @@ func (az *Azure) GetAzureStorageConfig(forceReload bool, cp *CustomPricing) (*Az
 			asc.SubscriptionId = defaultSubscriptionID
 		}
 		// check for required fields
-		if asc.AccessKey != "" && asc.AccountName != "" && asc.ContainerName != "" && asc.SubscriptionId == "" {
+		if asc.AccessKey != "" && asc.AccountName != "" && asc.ContainerName != "" && asc.SubscriptionId != "" {
 			az.serviceAccountChecks.set("hasStorage", &ServiceAccountCheck{
 				Message: "Azure Storage Config exists",
 				Status:  true,