You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Errors:
* openstack_compute_instance_v2.test: Error parsing vault_json: json: cannot unmarshal array into Go value of type string
Error!
exit status 1
[info] build failed (exit code 1)
Expected Behavior
It should have worked with no errors.
Actual Behavior
It returned the error above
Steps to Reproduce
Run terraform with chef provisioner that has vault_json that contains an array.
@jmccann yes, I didn't know the value could be both a string and an array of strings. Will indeed need to update that line, but a few others as well. Will put in a fix later today... Thx for the report!
@jmccann the fix is in PR #9114 Again it would be great if you can give it a test run to verify my work! If you are able to do so, then please also check if the user key is deleted before the Chef run is started... Thx!
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
locked and limited conversation to collaborators
Apr 21, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform v0.7.4
Affected Resource(s)
Debug Output
Expected Behavior
It should have worked with no errors.
Actual Behavior
It returned the error above
Steps to Reproduce
Run terraform with chef provisioner that has
vault_json
that contains an array.Example:
Important Factoids
vault_json
was recently added tochef
provisioner.I think the bad line of code causing this issue is @ https://github.com/hashicorp/terraform/blob/master/builtin/provisioners/chef/resource_provisioner.go#L355 ... specifically the
string
at the end of the line should beinterface{}
like it is forattributes_json
@ https://github.com/hashicorp/terraform/blob/master/builtin/provisioners/chef/resource_provisioner.go#L347References
vault_json
argument added as part of #8577@svanharmelen What are your thoughts on this?
The text was updated successfully, but these errors were encountered: