-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Switching azurerm_storage_blob
over to the new Storage SDK
#4179
Conversation
|
||
ctx.wg.Done() | ||
} | ||
return resourceArmStorageBlobUpdate(d, meta) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(for info) this now calls into Update because the Access Tier might as well be set there, since it needs to be configured after creation anyway
a1a5c0f
to
d4d4052
Compare
d4d4052
to
84c5038
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from one minor comment LGTM tom 👍
|
||
chunk := make([]byte, size) | ||
_, err := page.section.Read(chunk) | ||
if err != nil && err != io.EOF { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines could be merged:
if err != nil && err != io.EOF { | |
if _, err := page.section.Read(chunk) != nil && err != io.EOF { |
fb5a557
to
570562b
Compare
azurerm_storage_blob
over to the new Storage SDKazurerm_storage_blob
over to the new Storage SDK
I've done some manual testing with large files and this seems fine 👍 |
…o aid refactoring
This reverts commit 9971cce.
…uld do this for us
570562b
to
91f460c
Compare
Travis is failing because a downstream dependency is offline: |
This has been released in version 1.34.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 1.34.0"
}
# ... other configuration ... |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Since this is quite a complex resource (in that there's different kinds of blobs) we're going to do this migration to the new SDK in phases. This first PR switches the SDK over to using the new Giovanni Storage SDK but doesn't add support for the new features - nor does it address the open TODO's/add validation/switch the test suite over - which will come in a subsequent PR.
This PR fixes #2245