We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5e74b7 commit 2d63d1fCopy full SHA for 2d63d1f
azure/scope/cluster.go
@@ -1201,7 +1201,7 @@ func (s *ClusterScope) Location() string {
1201
// Only apply region normalization if both conditions are met:
1202
// 1. We're in AzureUSSecretCloud environment AND
1203
// 2. Resource manager endpoint contains .scombine.scloud suffix
1204
- if s.AzureCluster.Spec.AzureEnvironment == "AzureUSSecretCloud" &&
+ if s.isAzureSecretCloudEnvironment() &&
1205
strings.Contains(s.ResourceManagerEndpoint, ".scombine.scloud") {
1206
return azureutil.NormalizeAzureRegion(s.AzureCluster.Spec.Location)
1207
}
0 commit comments