pulp / pulp-cli

https://docs.pulpproject.org/pulp_cli/
GNU General Public License v2.0
36 stars 41 forks source link

Orphan cleanup command raises deprecation warning #297

Closed daviddavis closed 3 years ago

daviddavis commented 3 years ago

The pulp orphans delete command raises this deprecation warning (as of pulpcore 3.14):

pulpcore.deprecation:WARNING: The `DELETE /pulp/api/v3/orphans/` call is deprecated. Use`POST /pulp/api/v3/orphans/cleanup/` instead.

While we are fixing this command, I suggest we rename the command to pulp orphan cleanup as the current command is inconsistent with the rest of the CLI. We use singular resource names in the cli (eg pulp task list) and we don't use delete (rather destroy).

mdellweg commented 3 years ago

This needs to be version aware.