Actions
Bug #21369
closedHammer host list shows all hosts if environment is empty
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
Given an environment called “empty” that has 0 hosts assigned to it:
hammer host list --search "environment = empty"
outputs 0 hosts
but
hammer host list --environment=empty
outputs all hosts in Forman
The versions are:
# yum list installed '*foreman*' Loaded plugins: etckeeper, keys, protectbase, versionlock 0 packages excluded due to repository protections Installed Packages foreman.noarch 1.15.6-1.el7 @foreman foreman-cli.noarch 1.15.6-1.el7 @foreman foreman-debug.noarch 1.15.6-1.el7 @foreman foreman-installer.noarch 1:1.15.6-2.el7 @foreman foreman-libvirt.noarch 1.15.6-1.el7 @foreman foreman-postgresql.noarch 1.15.6-1.el7 @foreman foreman-release.noarch 1.15.6-1.el7 @foreman foreman-release-scl.noarch 3-1.el7 @foreman foreman-selinux.noarch 1.15.6-1.el7 @foreman tfm-rubygem-foreman_column_view.noarch 0.3.0-1.fm1_14.el7 @foreman-plugins tfm-rubygem-foreman_dhcp_browser.noarch 0.0.7-3.fm1_11.el7 @foreman-plugins tfm-rubygem-foreman_hooks.noarch 0.3.14-1.fm1_15.el7 @foreman-plugins tfm-rubygem-hammer_cli_foreman.noarch 0.10.2-1.el7 @foreman tfm-rubygem-puppetdb_foreman.noarch 3.1.2-1.fm1_15.el7 @foreman-plugins
Actions