Skip to content

Commit 2d63d1f

Browse files
Using function wrapper for location mapping in cluster.go
1 parent e5e74b7 commit 2d63d1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azure/scope/cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ func (s *ClusterScope) Location() string {
12011201
// Only apply region normalization if both conditions are met:
12021202
// 1. We're in AzureUSSecretCloud environment AND
12031203
// 2. Resource manager endpoint contains .scombine.scloud suffix
1204-
if s.AzureCluster.Spec.AzureEnvironment == "AzureUSSecretCloud" &&
1204+
if s.isAzureSecretCloudEnvironment() &&
12051205
strings.Contains(s.ResourceManagerEndpoint, ".scombine.scloud") {
12061206
return azureutil.NormalizeAzureRegion(s.AzureCluster.Spec.Location)
12071207
}

0 commit comments

Comments
 (0)