Open vhsantos opened 1 week ago
panic: assignment to entry in nil map
is caused by an error in the passed-in object into WrapJSONWithTaxonomy
. I had this in my work on the #157 but it came up repeatedly, I'll have to debug it with your example data.
In this case, it should originate here: https://github.com/terraform-coop/terraform-provider-foreman/blob/27ca840eef52bcf8355fa458ac6d5325e8c04b16/foreman/api/katello_content_views.go#L273
This error does not appear on the branch of #157, so it is probably fixed with b8a52c9313b2d69da0db43e8a8934f35f95ca787. We'll have to see to merge it quickly and release a new provider version. May be we'll find the time to take another test with your example data from the main branch, which is 0.6.3
.
Let me know if I can help with anything.
Hi there,
Im trying to create a contentview in a foreman 3.10 and katello 4.12 (https://docs.theforeman.org/3.10/Quickstart/index-katello.html), using the terraform-provider-foreman=0.6.3 and theses codes (and much variants):
or this other:
but in all the cases, I get the same error:
on the logs of the TF foreman plugin I get this:
But, the content view is created on the foreman:
So, looks like the plugin are having some issues trying to work with the foreman response !!! :-(
I have tried to use the PR https://github.com/terraform-coop/terraform-provider-foreman/pull/157 from @bitkeks (which looks good) but the result is the same.
Suggestions ??