Skip to content

Commit

Permalink
Fixes #2189: environment defaults to Azure Public Cloud
Browse files Browse the repository at this point in the history
Ideally this would be drawn from Vault Server, but the documented
default there is to point at Azure Public Cloud. This seems like a
decent compromise.

Signed-off-by: David Alexander <opensource@thelonelyghost.com>
  • Loading branch information
TheLonelyGhost committed Mar 13, 2024
1 parent e16b837 commit 36df45e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vault/data_source_azure_access_credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,9 @@ func azureAccessCredentialsDataSourceRead(ctx context.Context, d *schema.Resourc
}

func getAzureCloudConfigFromName(name string) (cloud.Configuration, error) {
if c == "" {
return cloud.AzurePublic, nil
}
if c, ok := azureCloudConfigMap[strings.ToUpper(name)]; !ok {
return c, fmt.Errorf("unsupported Azure cloud name %q", name)
} else {
Expand Down

0 comments on commit 36df45e

Please sign in to comment.