Red Hat Bugzilla – Bug 975874
error messages for a null --repo-id are not consistent in rpm repo
Last modified: 2015-02-28 16:57:17 EST
Description of problem: when a null repo id is given (--repo-id=) some commands present a validation error to the users, but other commands print the command options again with the message that --repo-id is required and was not specified.
Version-Release number of selected component (if applicable):
[jeremy@jcline ~]$ rpm -q pulp-rpm-admin-extensions
How reproducible: always
Steps to Reproduce:
1. use '--repo-id=' on any command in the rpm repo content, copy, and remove sections (in the case of copy it's --from-repo-id and --to-repo-id).
2. compare to using '--repo-id=' in the rpm repo update, delete, export, sync, and uploads sections.
[jeremy@jcline ~]$ pulp-admin rpm repo remove rpm --repo-id=
Description: remove RPMs from a repository
The following options are required but were not specified:
[jeremy@jcline ~]$ pulp-admin rpm repo uploads rpm --repo-id=
Validation failed for argument [--repo-id]: value must contain only letters,
numbers, underscores, periods and hyphens
Expected results: A consistent error throughout the commands.
Moved to https://pulp.plan.io/issues/359