Browse Source

Add container path config

Sean Holcomb 4 years ago
parent
commit
53b8ff2500
1 changed files with 4 additions and 2 deletions
  1. 4 2
      pkg/cloud/azureprovider.go

+ 4 - 2
pkg/cloud/azureprovider.go

@@ -468,6 +468,7 @@ type AzureStorageConfig struct {
 	AccountName    string `json:"azureStorageAccount"`
 	AccountName    string `json:"azureStorageAccount"`
 	AccessKey      string `json:"azureStorageAccessKey"`
 	AccessKey      string `json:"azureStorageAccessKey"`
 	ContainerName  string `json:"azureStorageContainer"`
 	ContainerName  string `json:"azureStorageContainer"`
+	ContainerPath  string `json:"azureContainerPath"`
 	AzureCloud     string `json:"azureCloud"`
 	AzureCloud     string `json:"azureCloud"`
 }
 }
 
 
@@ -477,6 +478,7 @@ func (asc *AzureStorageConfig) IsEmpty() bool {
 		asc.AccountName == "" &&
 		asc.AccountName == "" &&
 		asc.AccessKey == "" &&
 		asc.AccessKey == "" &&
 		asc.ContainerName == "" &&
 		asc.ContainerName == "" &&
+		asc.ContainerPath == "" &&
 		asc.AzureCloud == ""
 		asc.AzureCloud == ""
 }
 }
 
 
@@ -1268,9 +1270,9 @@ func (az *Azure) PricingSourceStatus() map[string]*PricingSource {
 		errMsg = az.RateCardPricingError.Error()
 		errMsg = az.RateCardPricingError.Error()
 	}
 	}
 	rcps := &PricingSource{
 	rcps := &PricingSource{
-		Name:  rateCardPricingSource,
+		Name:    rateCardPricingSource,
 		Enabled: true,
 		Enabled: true,
-		Error: errMsg,
+		Error:   errMsg,
 	}
 	}
 	if rcps.Error != "" {
 	if rcps.Error != "" {
 		rcps.Available = false
 		rcps.Available = false