-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Azure] Add sovereign cloud support for Storage #868
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,7 +141,7 @@ func GetStorageBlobContainerE(containerName, storageAccountName, resourceGroupNa | |
if err2 != nil { | ||
return nil, err2 | ||
} | ||
client, err := GetStorageBlobContainerClientE(subscriptionID) | ||
client, err := CreateStorageBlobContainerClientE(subscriptionID) | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
@@ -162,7 +162,7 @@ func GetStorageAccountPropertyE(storageAccountName, resourceGroupName, subscript | |
if err2 != nil { | ||
return nil, err2 | ||
} | ||
client, err := GetStorageAccountClientE(subscriptionID) | ||
client, err := CreateStorageAccountClientE(subscriptionID) | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
@@ -174,6 +174,7 @@ func GetStorageAccountPropertyE(storageAccountName, resourceGroupName, subscript | |
} | ||
|
||
// GetStorageAccountClientE creates a storage account client. | ||
// TODO: remove in next version | ||
func GetStorageAccountClientE(subscriptionID string) (*storage.AccountsClient, error) { | ||
// Validate Azure subscription ID | ||
subscriptionID, err := getTargetAzureSubscription(subscriptionID) | ||
|
@@ -191,6 +192,7 @@ func GetStorageAccountClientE(subscriptionID string) (*storage.AccountsClient, e | |
} | ||
|
||
// GetStorageBlobContainerClientE creates a storage container client. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove the method GetStorageBlobContainerClientE as it is no longer used There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I mentioned this somewhere, but I can't find where I said this, so reiterating it here: Since this is a public method, removing it means we will have to cut a backward incompatible release. It would be a bit of a pain for us to release a backward incompatible release for each of these changes. I think it would be better to keep these in so that we can merge all of these changes as backward compatible patch releases, and then at the very end once all the files are updated, we can have one big PR to remove all the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sounds good @yorinasub17 , I approved it and it is ready for review @gruntwork-terratest-terragrunt |
||
// TODO: remove in next version | ||
func GetStorageBlobContainerClientE(subscriptionID string) (*storage.BlobContainersClient, error) { | ||
subscriptionID, err := getTargetAzureSubscription(subscriptionID) | ||
if err != nil { | ||
|
This comment was marked as resolved.
Sorry, something went wrong.