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

Digital Ocean Floating IP Assignments result in parsing error #155

Open
Brando753 opened this issue Feb 3, 2021 · 0 comments
Open

Digital Ocean Floating IP Assignments result in parsing error #155

Brando753 opened this issue Feb 3, 2021 · 0 comments

Comments

@Brando753
Copy link

Brando753 commented Feb 3, 2021

It appears that if you use digitalocean_floating_ip_assignment in your .tf file the terrafrom-inventory script will be unable to parse the resulting state file.

➜  git:(master) ✗ TF_STATE=. ./terraform-inventory --list                          
Error reading Terraform state: 0.12 format error: json: cannot unmarshal string into Go struct field resourceStateTerraform0dot12.index of type int; pre-0.12 format error: <nil> (nil error means no content/modules found in the respective format)

Removing the floating IP assignments and re-applying terraform results in the script working as expected.

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

1 participant