-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DXE-4473 Error exporting property. Saving terraform files. Executing template: rules_v2024-10-21. Range can't iterate over #82
Comments
Hi @glenthomas I was able to reproduce it. We will inform you about progress. BR, |
Hello @lsadlon, please let me know if there are any suitable workarounds as I would like to continue with my work ASAP. Thanks. |
Hi @glenthomas, You can open your property in UI and save it there even without any changes. It should covert this problematic element to array of strings. BR, |
Hello @lsadlon, to confirm, are you saying that I can:
and it will now work? So somebody has fixed the |
...I have just tried this and am still getting the same error. |
Hi @glenthomas, So problem is that cli-terraform while exporting data expect BR, |
I have downloaded the rules from the property as JSON. I have corrected the schema to use an array of strings and am now trying to PUT the rules back via Postman. I am getting this generic error: {
"type": "https://problems.luna.akamaiapis.net/papi/v0/http/bad-request",
"title": "Bad Request",
"detail": "The system cannot understand your request. Please check the syntax and correct any problems.",
"instance": "https://{redacted}.luna.akamaiapis.net/papi/v1/properties/123456/versions/1234/rules#d1b1675ae15852fa",
"status": 400
} How can I validate the rules JSON? I have tried using params |
I have also tried the rules PATCH endpoint and am getting the same error response Request:
Response:
|
Hi @glenthomas, To be honest from error message that you get I cannot tell you what is wrong, but it looks there is something wrong with request itself, rather than rules. BR, |
I have a bug with the export-property command when exporting rule format 2024-10-21.
The output is:
I have some match criteria that uses an array of strings for match values. This is from the downloaded rules JSON:
Strangely, I have similar blocks of JSON in the export that have a single array item, but include it as an array of strings rather than just a string:
The text was updated successfully, but these errors were encountered: