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
attached_disks only work if source is a self_link #514
Labels
Comments
Closed
FYI #460 |
*facepalm* |
luis-silva
pushed a commit
to luis-silva/terraform-provider-google
that referenced
this issue
May 21, 2019
…ashicorp#514) <!-- This change is generated by MagicModules. --> /cc @rileykarson
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! |
ghost
locked and limited conversation to collaborators
Mar 30, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When using
attached_disk
on a resource, if aname
is used instead of a fullself_link
, the API response can't match it to theattached_disk
field it belongs to, and tries to make it adisk
. But disks don't exist anymore, so it just ignores it in the state. This manifests as a constant diff showing the need to update the attached disk.A quick solution to this would be to update the matching that happens in
compute_instance
's Read function to accept either aself_link
or aname
and treat them as equivalent. A better solution to this would probably involve ripping out the code that distinguished betweenattached_disk
anddisk
entirely, and reworking the logic of that section, as we no longer need to match againstdisk
.In the meantime, users can workaround the problem by using the
self_link
instead of thename
in their configs.The text was updated successfully, but these errors were encountered: