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

Azure tag with value "true" gets converted to "1" by terraform #1353

Closed
bpoland opened this issue Jun 6, 2018 · 4 comments
Closed

Azure tag with value "true" gets converted to "1" by terraform #1353

bpoland opened this issue Jun 6, 2018 · 4 comments
Labels
bug upstream/terraform This issue is blocked on an upstream issue within Terraform (Terraform Core/CLI, The Plugin SDK etc)

Comments

@bpoland
Copy link

bpoland commented Jun 6, 2018

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

Terraform v0.11.7

Affected Resource(s)

  • data.azurerm_image (possibly affects many other too, basically anything that supports tags)

Terraform Configuration Files

(The referenced image should have a tag with value "true")

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp
data "azurerm_image" "test" {
    name                = "${var.azure_image_name}"
    resource_group_name = "${var.azure_resource_group}"
}
output "image_tags" {
    value = "${data.azurerm_image.test.tags}"
}

Debug Output

N/A

Panic Output

N/A

Expected Behavior

The tag with value "true" should have been output

Actual Behavior

The tag gets output with value "1"

Steps to Reproduce

  1. Configure image with a tag that has the value "true"
  2. terraform apply
  3. look at output

Important Factoids

N/A

References

I'm not sure if this can be fixed in this provider or whether it's a general terraform issue but I thought I'd start here. I found these similar issues:

hashicorp/terraform#6005 which has a link to https://github.com/mitchellh/mapstructure/blob/d2dd0262208475919e1a362f675cfc0e7c10e905/mapstructure.go#L61 that seems suspicious

hashicorp/terraform#10826

@jkrukoff-cb
Copy link

So far, the best description I've found for this problem is over here: hashicorp/terraform#13512 , though I don't know if this is exactly the same thing.

@tombuildsstuff
Copy link
Contributor

hi @bpoland

Thanks for opening this issue - apologies for the delayed response here!

As @jkrukoff-cb has mentioned this is a bug in Terraform Core (specifically it's an HCL bug) - which is being tracked in hashicorp/terraform#13512 - rather than tracking this issue in multiple repositories I'm going to close this issue in favour of that one; would you mind subscribing to that one for updates?

Thanks!

@tombuildsstuff tombuildsstuff added the upstream/terraform This issue is blocked on an upstream issue within Terraform (Terraform Core/CLI, The Plugin SDK etc) label Nov 3, 2018
@bpoland
Copy link
Author

bpoland commented Nov 5, 2018

Thanks, yes that does look like the same thing. I will follow that one.

@ghost
Copy link

ghost commented Mar 6, 2019

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 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug upstream/terraform This issue is blocked on an upstream issue within Terraform (Terraform Core/CLI, The Plugin SDK etc)
Projects
None yet
Development

No branches or pull requests

3 participants