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

provider/google: Updated Read(..) behavior to handle deleted resources #3913

Merged
merged 1 commit into from
Jan 7, 2016

Conversation

lwander
Copy link
Contributor

@lwander lwander commented Nov 13, 2015

When Terraform discovers that a resource has been deleted on a Read, it should update the statefile accordingly. This behavior was pointed out by @apparentlymart in #3742 as the standard, and with this PR all GCP resources follow this convention.

@sparkprime

@radeksimko
Copy link
Member

Just one nitpick, otherwise LGTM - it would be probably more useful for potential debugging and reading crash logs in the future to replace the inline comment // The resource doesn't exist anymore with something like log.Printf("[WARN] Removing URL map %q because it's gone", name).

@radeksimko radeksimko added enhancement provider/google-cloud waiting-response An issue/pull request is waiting for a response from the community labels Nov 14, 2015
@lwander
Copy link
Contributor Author

lwander commented Nov 14, 2015

@radeksimko, good idea, I'll update that for all the Google resources.

@radeksimko radeksimko removed the waiting-response An issue/pull request is waiting for a response from the community label Nov 14, 2015
@coffeepac
Copy link
Contributor

This is an awesome feature. would love to see it mainline. Actually got into a bit of a discussion with a coworker because I thought it was in mainline.

@lwander
Copy link
Contributor Author

lwander commented Jan 7, 2016

Fixes #4539

@radeksimko, I've added the logging, does it look good to you?

@phinze
Copy link
Contributor

phinze commented Jan 7, 2016

@lwander This LGTM, merge at will once Travis passes

@radeksimko
Copy link
Member

// The resource doesn't exist anymore that comment is I think superfluous, but I don't mind merging it as is, as soon as Travis build turns green. 👍

lwander added a commit that referenced this pull request Jan 7, 2016
provider/google: Updated Read(..) behavior to handle deleted resources
@lwander lwander merged commit 01a5392 into hashicorp:master Jan 7, 2016
@coffeepac
Copy link
Contributor

Woo! Thanks team!

@lwander lwander deleted the b-gcp-delete-behavior branch January 13, 2016 22:19
omeid pushed a commit to omeid/terraform that referenced this pull request Mar 30, 2018
…x-pattern-set

New Resource: aws_waf_regex_pattern_set
@ghost
Copy link

ghost commented Apr 28, 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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants