Skip to content
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-2937 export-property: failure with rule-format v2023-05-30 #58

Closed
fkieling opened this issue Aug 1, 2023 · 4 comments
Closed

DXE-2937 export-property: failure with rule-format v2023-05-30 #58

fkieling opened this issue Aug 1, 2023 · 4 comments
Labels
bug Something isn't working waiting for release

Comments

@fkieling
Copy link

fkieling commented Aug 1, 2023

Hi there,

Akamai CLI Version

akamai version 1.5.5
akamai terraform version 1.8.0

Expected Behavior

If i run "akamai terraform export-property --schema" i will get a hcl export of the property.

Actual Behavior

If i run "akamai terraform export-property --schema" and the rule format of the property is v2023-05-30 i get an error:

$ akamai terraform export-property --schema XXXXX
Fetching property aaas73.nm-acs.de_ion [OK]
Fetching group [OK]
Fetching property version [OK]
Fetching property rules [OK]
Fetching product name [OK]
Fetching hostnames [OK]
Fetching activation details [OK]
Saving TF configurations [FAIL]
Error exporting property: saving terraform project files: executing template: rules_v2023-05-30.tmpl: template: rules_v2023-05-30.tmpl:3:12: executing "Text" at : wrong type for value; expected string; got []interface {}

@fkieling fkieling changed the title export-property failure with rule-format v2023-05-30 export-property: failure with rule-format v2023-05-30 Aug 1, 2023
@mgwoj
Copy link
Contributor

mgwoj commented Aug 1, 2023

Hello @fkieling ,

Is it possible to share content of the rule tree in JSON format (after removing any sensitive information)? Current message is not showing which field is causing this issue and why.

Thanks,
Michal

@mgwoj mgwoj changed the title export-property: failure with rule-format v2023-05-30 DXE-2937 export-property: failure with rule-format v2023-05-30 Aug 2, 2023
@fkieling
Copy link
Author

fkieling commented Aug 3, 2023

Hi @mgwoj,

here is the export as json format.

property-snippets.tgz

Regards,
Florian

@mgwoj
Copy link
Contributor

mgwoj commented Aug 4, 2023

Thank you for reporting this issue.
It looks that the problem is related to the bug in the schema generator for field logStreamName in the datastream behavior.
We will be working on fixing it.

@aka-mark aka-mark added bug Something isn't working planned labels Aug 10, 2023
@lkowalsk-akamai-com
Copy link

This issue should be resolved with recent release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for release
Development

No branches or pull requests

4 participants