Skip to content

Refresh google_compute_autoscaler using the zone set in state when possible #193

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

Merged
merged 1 commit into from
Aug 3, 2017

Conversation

rileykarson
Copy link
Collaborator

Previously, we refreshed google_compute_autoscaler by scanning the region's zones every time, instead of only in the import path, when we didn't know the zone. This brings google_compute_autoscaler's Read path in line with both other importable zonal resources, google_compute_disk and google_compute_instance_group_manager.

Fixes #192.

@rileykarson
Copy link
Collaborator Author

TF_ACC=1 go test ./google -v -run=TestAccComputeAutoscaler_ -timeout 120m
=== RUN   TestAccComputeAutoscaler_importBasic
--- PASS: TestAccComputeAutoscaler_importBasic (71.13s)
=== RUN   TestAccComputeAutoscaler_basic
--- PASS: TestAccComputeAutoscaler_basic (69.71s)
=== RUN   TestAccComputeAutoscaler_update
--- PASS: TestAccComputeAutoscaler_update (82.64s)
PASS
ok  	github.com/terraform-providers/terraform-provider-google/google	223.591s

@rileykarson rileykarson merged commit 9f429e7 into hashicorp:master Aug 3, 2017
z1nkum pushed a commit to z1nkum/terraform-provider-google that referenced this pull request Aug 15, 2017
negz pushed a commit to negz/terraform-provider-google that referenced this pull request Oct 17, 2017
luis-silva pushed a commit to luis-silva/terraform-provider-google that referenced this pull request May 21, 2019
@ghost
Copy link

ghost commented Mar 31, 2020

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 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 31, 2020
@rileykarson rileykarson deleted the autoscaler-read-zone branch March 12, 2025 18:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect zones for google_compute_autoscaler in tfstate
2 participants