Pārlūkot izejas kodu

fix condition on configuration

Signed-off-by: Sean Holcomb <seanholcomb@gmail.com>
Sean Holcomb 3 gadi atpakaļ
vecāks
revīzija
18f0af04df
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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
 			asc.SubscriptionId = defaultSubscriptionID
 		}
 		}
 		// check for required fields
 		// 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{
 			az.serviceAccountChecks.set("hasStorage", &ServiceAccountCheck{
 				Message: "Azure Storage Config exists",
 				Message: "Azure Storage Config exists",
 				Status:  true,
 				Status:  true,