Closed iuliancristea closed 3 years ago
Ah yes, in Terraform the typeSet
type is special. Data coming off that field needs to be coerced using .(*schema.Set).List()
before it can be processed. With typeList
you just need to cast the data as []interface{}
That change you mentioned was for making the resource IDs position independent but the coercion piece was missed. That is on me for not catching that. It should be fixed in v0.1.4.
Please close this issue if v0.1.4 fixes the problem for you @iuliancristea
@dcaponi It works fine now! Thanks for the prompt response!
Hi,
When trying to create a
onelogin_roles
resource using thev0.1.3
version, a panic occurs. However, this does work onv0.1.2
.Steps to reproduce:
Try creating the following resource with
v0.1.3
:Error messages seem to indicate
github.com/onelogin/terraform-provider-onelogin/ol_schema/role/role.go:48
which may have been impacted by this change https://github.com/onelogin/terraform-provider-onelogin/commit/0099909475d785c0e118853e46bd9c10f1e0179a#