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

Make dataflow on_delete a virtual field #2110

Conversation

modular-magician
Copy link
Collaborator

Fixes hashicorp/terraform-provider-google#6301
updating on_delete would either cause the batch job to be destroyed or the stream to be updated-by-replacement. To prevent this, we need to check if on_delete is our only change by update time.

Release Note Template for Downstream PRs (will be copied)

`dataflow`: fixed an issue where `google_dataflow_job` would try to update `max_workers`
`dataflow`: fixed an issue where updating `on_delete` in `google_dataflow_job` would cause the job to be replaced

Derived from GoogleCloudPlatform/magic-modules#3567

* Make dataflow on_delete a virtual field

* Clarify test

* Add attribute check for good measure

* remove comments

* only iterate on "labels" map

Signed-off-by: Modular Magician <magic-modules@google.com>
@ghost ghost added the size/m label May 27, 2020
@modular-magician modular-magician merged commit 73748e0 into hashicorp:master May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant