Bug #7411
closedHammer Cli role list filters does not work if 'name' is provided
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1138559
Description of problem:
role list filters does not work if 'name' is provided
Version-Release number of selected component (if applicable):
foreman-gce-1.6.0.44-1.el7sat.noarch
rubygem-hammer_cli_foreman-0.1.1-16.el7sat.noarch
foreman-selinux-1.6.0.14-1.el7sat.noarch
ruby193-rubygem-foreman_hooks-0.3.5-2.el7sat.noarch
ruby193-rubygem-foreman_discovery-1.3.0-2.el7sat.noarch
foreman-ovirt-1.6.0.44-1.el7sat.noarch
ruby193-rubygem-foreman-redhat_access-0.0.4-2.el7sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3-3.el7sat.noarch
qe-sat6-rhel7.usersys.redhat.com-foreman-client-1.0-1.noarch
foreman-compute-1.6.0.44-1.el7sat.noarch
ruby193-rubygem-foreman-tasks-0.6.9-1.1.el7sat.noarch
ruby193-rubygem-foreman_bootdisk-2.0.5-2.el7sat.noarch
foreman-libvirt-1.6.0.44-1.el7sat.noarch
foreman-proxy-1.6.0.30-1.el7sat.noarch
foreman-1.6.0.44-1.el7sat.noarch
foreman-vmware-1.6.0.44-1.el7sat.noarch
foreman-postgresql-1.6.0.44-1.el7sat.noarch
qe-sat6-rhel7.usersys.redhat.com-foreman-proxy-1.0-1.noarch
How reproducible:
everytime
Steps to Reproduce:
1.# hammer role filters --name testrole
[Foreman] username: admin
[Foreman] password for admin:
Error: Missing options to search filter
2.# hammer role filters --id 41
[Foreman] username: admin
[Foreman] password for admin:
----|---------------|--------|------------|----------|----------------------
ID | RESOURCE TYPE | SEARCH | UNLIMITED? | ROLE | PERMISSIONS
----|---------------|--------|------------|----------|----------------------
121 | Architecture | none | yes | testrole | destroy_architectures
----|---------------|--------|------------|----------|----------------------
3.
Actual results:
roles list filter fails if name is provided
it works if we use 'id' instead of name
Expected results:
roles list filter should work in both cases (id and name)
Additional info:
Updated by Dominic Cleal about 10 years ago
- Category set to Foreman commands (obsolete)
Updated by Ori Rabin over 8 years ago
- Status changed from New to Resolved
This is working now against develop, likely fixed by: https://github.com/theforeman/foreman/commit/915b29188a4f3842deade78a62a914c327433820