Skip to content
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

Fix metadata for storage bucket object #2025

Conversation

modular-magician
Copy link
Collaborator

Release Note Template for Downstream PRs (will be copied)

storage: Fixed setting/reading `google_storage_bucket_object`  metadata on API object

Fixes hashicorp/terraform-provider-google#6256

This wasn't caught by the metadata test because the absence of the field in both create and read - resource.TestCheckResourceAttr checks against state, where metadata was never changed from the initial config value. Usually this is fixed by the import tests.

I don't think storage bucket object is out of the range of autogenerating, so I'll probably do that in a follow-up PR. At the very least, we should support import, though I'm not sure if we avoided it because of content/source.

Derived from GoogleCloudPlatform/magic-modules#3458

@ghost ghost added the size/xs label May 1, 2020
@modular-magician modular-magician merged commit ea46dfa into hashicorp:master May 1, 2020
@modular-magician modular-magician deleted the downstream-pr-1f5b6ab917b646ba0426db10b761244e56899daa branch November 16, 2024 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

google_storage_bucket_object not setting metadata
1 participant