Project

General

Profile

Actions

Bug #7411

closed

Hammer Cli role list filters does not work if 'name' is provided

Added by Dominic Cleal about 10 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Foreman commands (obsolete)
Target version:
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

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:

Actions #1

Updated by Dominic Cleal about 10 years ago

  • Category set to Foreman commands (obsolete)
Actions #2

Updated by Ivan Necas over 8 years ago

  • Target version set to 1.7.0
Actions #3

Updated by Ori Rabin over 8 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF