Actions
Bug #17709
closedCannot create a hostgroup with a content view
Difficulty:
easy
Triaged:
Description
hammer -v hostgroup create --name 'my-hg' --content-view "RHEL 7 SOE" HammerCLIForeman::MissingSearchOptions (Missing options to search organization): /home/vagrant/projects/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:220:in `search_options' /home/vagrant/projects/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:180:in `resolved_call' /home/vagrant/projects/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:172:in `find_resource_raw' /home/vagrant/projects/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:166:in `find_resource' /home/vagrant/projects/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:143:in `get_id' /home/vagrant/projects/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:133:in `block (2 levels) in define_id_finders' /home/vagrant/projects/hammer-cli-katello/lib/hammer_cli_katello/search_options_creators.rb:34:in `create_content_views_search_options' /home/vagrant/projects/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:216:in `search_options' /home/vagrant/projects/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:180:in `resolved_call' /home/vagrant/projects/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:172:in `find_resource_raw' /home/vagrant/projects/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:166:in `find_resource' /home/vagrant/projects/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:143:in `get_id' /home/vagrant/projects/hammer-cli-foreman/lib/hammer_cli_foreman/id_resolver.rb:133:in `block (2 levels) in define_id_finders' /home/vagrant/projects/hammer-cli-katello/lib/hammer_cli_katello/content_view_name_resolvable.rb:14:in `all_options' /home/vagrant/.rvm/gems/ruby-2.2.4/gems/hammer_cli-0.8.0/lib/hammer_cli/abstract.rb:245:in `options' /home/vagrant/.rvm/gems/ruby-2.2.4/gems/hammer_cli-0.8.0/lib/hammer_cli/abstract.rb:32:in `parse' /home/vagrant/.rvm/gems/ruby-2.2.4/gems/clamp-1.1.1/lib/clamp/command.rb:62:in `run' /home/vagrant/.rvm/gems/ruby-2.2.4/gems/hammer_cli-0.8.0/lib/hammer_cli/abstract.rb:22:in `run' /home/vagrant/.rvm/gems/ruby-2.2.4/gems/clamp-1.1.1/lib/clamp/subcommand/execution.rb:11:in `execute' /home/vagrant/.rvm/gems/ruby-2.2.4/gems/clamp-1.1.1/lib/clamp/command.rb:63:in `run' /home/vagrant/.rvm/gems/ruby-2.2.4/gems/hammer_cli-0.8.0/lib/hammer_cli/abstract.rb:22:in `run' /home/vagrant/.rvm/gems/ruby-2.2.4/gems/clamp-1.1.1/lib/clamp/subcommand/execution.rb:11:in `execute' /home/vagrant/.rvm/gems/ruby-2.2.4/gems/clamp-1.1.1/lib/clamp/command.rb:63:in `run' /home/vagrant/.rvm/gems/ruby-2.2.4/gems/hammer_cli-0.8.0/lib/hammer_cli/abstract.rb:22:in `run' /home/vagrant/.rvm/gems/ruby-2.2.4/gems/clamp-1.1.1/lib/clamp/command.rb:132:in `run' /home/vagrant/.rvm/gems/ruby-2.2.4/gems/hammer_cli-0.8.0/bin/hammer:125:in `<top (required)>' /home/vagrant/.rvm/gems/ruby-2.2.4/bin/hammer:23:in `load' /home/vagrant/.rvm/gems/ruby-2.2.4/bin/hammer:23:in `<main>' /home/vagrant/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in `eval' /home/vagrant/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in `<main>'
Actions