Browse Source

Change to OR

Bianca Burtoiu 4 years ago
parent
commit
c8bc30b5e5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pkg/cloud/awsprovider.go

+ 2 - 2
pkg/cloud/awsprovider.go

@@ -781,8 +781,8 @@ func (aws *AWS) DownloadPricingData() error {
 
 
 	aws.ConfigureAuthWith(c) // load aws authentication from configuration or secret
 	aws.ConfigureAuthWith(c) // load aws authentication from configuration or secret
 
 
-	// Need valid values for all three fields to consider spot pricing enabled
-	if len(aws.SpotDataBucket) != 0 && len(aws.SpotDataRegion) != 0 && len(aws.ProjectID) != 0 {
+	// Need valid values for at least one of the three fields to consider spot pricing enabled
+	if len(aws.SpotDataBucket) != 0 || len(aws.SpotDataRegion) != 0 || len(aws.ProjectID) != 0 {
 		aws.SpotRefreshEnabled = true
 		aws.SpotRefreshEnabled = true
 	} else {
 	} else {
 		aws.SpotRefreshEnabled = false
 		aws.SpotRefreshEnabled = false