Actions
Bug #4263
closedKatello CLI subcommands are inconsistent with Foreman subcommands
Description
For some generic actions in Foreman's CLI, no arguments are required to get a list of records or get information about a given object. Katello now adds the requirement for an organization id in order to get the same type of results, which leads to inconsistency across the CLI:
[root@qetello03 katello-deploy]# hammer organization list ------------------------------------------------------------------------ ID | NAME | LABEL | DESCRIPTION ------------------------------------------------------------------------ 1 | ACME_Corporation | ACME_Corporation | ACME_Corporation Organization ------------------------------------------------------------------------ [root@qetello03 katello-deploy]# hammer user list --------------------------------------------------------- ID | LOGIN | NAME | EMAIL --------------------------------------------------------- 1 | admin | Admin User | root@usersys.redhat.com 2 | hidden-jwwiEr | | qVadfhEBUb@localhost --------------------------------------------------------- [root@qetello03 katello-deploy]# hammer gpg list Error: option '--organization-id' is required See: 'hammer gpg list --help'
As you can see, the gpg subcommand requires a organization-id argument. I find this to be inconsistent with the rest of the CLI subcommands, not to mention that it doesn't really buys us anything in terms of usability. I would like to propose we remove this requirement so that one can get a list of all gpg keys as well as obtain the information for a gpg key by using its name/id and not require the organization-id.
Actions