akamai / cli-terraform

Akamai CLI plugin Admin Support for multiple OpenAPI resource types
Apache License 2.0
21 stars 11 forks source link

DXE-2806 export-cps error: nil pointer evaluating *cps.DNSNameSettings.CloneDNSNames #52

Closed hameren closed 9 months ago

hameren commented 1 year ago

Exporting a cps 3th party enrollment with multiple sans, results in this error:

Akamai DevOps [/workdir/cps] >> akamai terraform export-cps <enrollment_id> <contract_id>
Exporting CPS configuration
Fetching enrollment for the given id <enrollment_id> [===       ] Fetching enrollment for the given id <enrollment_id> ... [OK]
Retrieving certificate history  [==========] Retrieving certificate history  ... [OK]
Saving TF configurations  ... [FAIL]
Error exporting enrollment HCL: executing template: enrollment.tmpl: template: enrollment.tmpl:92:31: executing "enrollment.tmpl" at <.DNSNameSettings.CloneDNSNames>: nil pointer evaluating *cps.DNSNameSettings.CloneDNSNames
akamai version 1.5.4
akamai terraform version 1.6.0

Thanks, Peter

Slonimskaia commented 1 year ago

Hi @hameren,

thank you for reporting this issue. We will investigate this and get back to you soon

Best regards, Tatiana Slonimskaia

lkowalsk-akamai-com commented 9 months ago

This issue should now be fixed.