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
When there is no custom certificates, the provider should generate the rule JSON with a default value of [] for the custom_certificate property in the origin rule.
Thank you for raising this issue. We were able to reproduce it and create internal ticket to fix it.
BR,
Lukasz
lsadlon
changed the title
Bug: Rule builder does not generate the correct default value for the customCertificate property
DXE-3463 Bug: Rule builder does not generate the correct default value for the customCertificate property
Jan 11, 2024
When there is no custom certificates, the provider should generate the rule JSON with a default value of
[]
for thecustom_certificate
property in theorigin
rule.Terraform Version
1.2.5
Rule format
rules_v2023_10_30
Provider version
5.5.0
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
The "origin" rule should have been created and added to the property without custom certificates
"customCertificates": [],
Actual Behavior
The API call to activate the property failed because the rule configuration is wrong.
API Error message:
Steps to Reproduce
terraform apply
Important Factoids
If you try to add an empty block (in the HCL) you get an empty object inside a list (in the JSON output), example:
Input:
custom_certificate { }
Output:
{ "customCertificates": [{}], }
And this fails when we try to activate the property because it doesn't match the schema
References
The text was updated successfully, but these errors were encountered: