Skip to content

Commit 3b13760

Browse files
authored
Merge pull request #683 from andyzhangx/respect-DisableAzureStackCloud
fix: respect DisableAzureStackCloud on AKS control plane setting
2 parents 02ba84f + d393ebe commit 3b13760

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/blob/azure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ var (
4747

4848
// IsAzureStackCloud decides whether the driver is running on Azure Stack Cloud.
4949
func IsAzureStackCloud(cloud *azure.Cloud) bool {
50-
return strings.EqualFold(cloud.Config.Cloud, "AZURESTACKCLOUD")
50+
return !cloud.Config.DisableAzureStackCloud && strings.EqualFold(cloud.Config.Cloud, "AZURESTACKCLOUD")
5151
}
5252

5353
// getCloudProvider get Azure Cloud Provider

0 commit comments

Comments
 (0)