Open nicolascomete opened 1 month ago
Edit: after looking at the code I found the issue - but no workaround...
The expected format would be:
value = "[10.0.0.0/24]"
Unfortunately this does not work in my case because the array has only one item. Because the way it is handled in the code is that the input string ["10.0.0.0/24"]
is first trimmed for [
and ]
, then split with ,
to an array. Then if the array's length is 1 (which is the case here), the array is not kept and only string is assumed, leading to the failure.
If I had put:
value = "[10.0.0.0/24,11.0.0.0/24]"
it would have worked.
There are 3 major flaws with this way of processing:
,
?hey @nicolascomete. Some changes in the backend needs to be done to support this. Let me bring it up to the team.
Hey @tyao117 @hkantare provider is being used in DMZR project
Summary When creating a custom rule resource (
ibm_scc_rule.scc_rule_instance
), we can't set JSON value forrequired_config
'svalue
attribute.Detailed description When
required_config
attribute has anand
oror
whoseoperator
value implies a list for thevalue
attribute (e.g.strings_required
,ips_in_range
, ...), it is not possible to create the custom rule, regardless of the input provided.Terraform provider version used v1.65.1
Examples of failing template
Leads to:
Note: also fails with the same error for the following: