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

spaces in tags.Name creates invalid inventory.ini entry #138

Open
rngadam opened this issue Jan 20, 2020 · 1 comment
Open

spaces in tags.Name creates invalid inventory.ini entry #138

rngadam opened this issue Jan 20, 2020 · 1 comment

Comments

@rngadam
Copy link

rngadam commented Jan 20, 2020

resource "aws_instance" "android_build" {
  tags = {
    Name = "Android Builder"
  }

generates:

[name_android builder]

which fails with:

[WARNING]:  * Failed to parse /Users/rngadam/coderbunker/prj/esmart/esmart-terraform-build/inventory.ini with ini plugin: /Users/rngadam/coderbunker/prj/esmart/esmart-
terraform-build/inventory.ini:18: Invalid section entry: '[name_android builder]'. Please make sure that there are no spaces in the section entry, and that there are no
other invalid characters

[WARNING]: Unable to parse /Users/rngadam/coderbunker/prj/esmart/esmart-terraform-build/inventory.ini as an inventory source

workaround:

resource "aws_instance" "android_build" {
  tags = {
    Name = "Android_Builder"
  }
@tmeinlschmidt
Copy link

would be nice to have an option to skip certain tags..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants