Parcourir la source

Merge pull request #2048 from savar/fix/wrong_variable_used

use the existing variable in error message
Matt Ray il y a 2 ans
Parent
commit
4fcada5477
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      pkg/cloud/azure/provider.go

+ 2 - 2
pkg/cloud/azure/provider.go

@@ -208,7 +208,7 @@ func getRegions(service string, subscriptionsClient subscriptions.Client, provid
 						if loc, ok := allLocations[displName]; ok {
 						if loc, ok := allLocations[displName]; ok {
 							supLocations[loc] = displName
 							supLocations[loc] = displName
 						} else {
 						} else {
-							log.Warnf("unsupported cloud region %q", loc)
+							log.Warnf("unsupported cloud region %q", displName)
 						}
 						}
 					}
 					}
 					break
 					break
@@ -226,7 +226,7 @@ func getRegions(service string, subscriptionsClient subscriptions.Client, provid
 						if loc, ok := allLocations[displName]; ok {
 						if loc, ok := allLocations[displName]; ok {
 							supLocations[loc] = displName
 							supLocations[loc] = displName
 						} else {
 						} else {
-							log.Warnf("unsupported cloud region %q", loc)
+							log.Warnf("unsupported cloud region %q", displName)
 						}
 						}
 					}
 					}
 					break
 					break