akamai / cli-property-manager

Use this Property Manager CLI to automate Akamai property changes and deployments across many environments.
Apache License 2.0
29 stars 22 forks source link

DXE-2447 command >> update-local | incomplete , possible missing arguments #83

Open tpimenta88 opened 1 year ago

tpimenta88 commented 1 year ago

akamai property-manager update-local -p qa.example.com

i assume that qa.example.com is the property's name inside the Property Manager in the akamai portal. when the command is run, how does it know the environment and pipeline to update locally? keep getting the error : _PM CLI Error: 'property_folder_does_not_exist' occurred: Error: Property folder 'qa.example.com' does not exist at DevopsPropertyManager.updateProperty (/Users/xx/.akamai-cli/src/cli-property-manager/src/pm/devops_property_manager.js:162:19) at update (/Users/xx/.akamai-cli/src/cli-property-manager/src/pm/property_manager_cli.js:698:44) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Error details: Argument #0: qa.example.com

and the reality is the folder does not exist, what we have is env>qa in a directory structure as follows:

\example.com (pipeline name)

\cache \dist \env \qa \prod

so should we not have to specify the property we want to fetch and the pipeline+environment to update??? Should the command look like: akamai property-manager update-local -p -p pipelineName

Slonimskaia commented 1 year ago

Hi @tpimenta88,

Thank you for raising this issue. We will reproduce it from our side and come back to you soon.

Best regards, Tatiana

tpimenta88 commented 1 year ago

akamai property-manager update-local -p qa.example.com

i assume that qa.example.com is the property's name inside the Property Manager in the akamai portal. when the command is run, how does it know the environment and pipeline to update locally? keep getting the error : _PM CLI Error: 'property_folder_does_not_exist' occurred: Error: Property folder 'qa.example.com' does not exist at DevopsPropertyManager.updateProperty (/Users/xx/.akamai-cli/src/cli-property-manager/src/pm/devops_property_manager.js:162:19) at update (/Users/xx/.akamai-cli/src/cli-property-manager/src/pm/property_manager_cli.js:698:44) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Error details: Argument #0: qa.example.com

and the reality is the folder does not exist, what we have is env>qa in a directory structure as follows:

\example.com (pipeline name)

\cache \dist \env

\qa \prod

so should we not have to specify the property we want to fetch and the pipeline+environment to update??? Should the command look like: akamai property-manager update-local -p -p pipelineName So FROM: "-p " update-local pipeline & env, the TO :"-p pipelineName "