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>'
Updated by Dominic Cleal almost 8 years ago
- Project changed from Hammer CLI to Katello
Updated by Justin Sherrill almost 8 years ago
- Category set to Hammer
- Translation missing: en.field_release set to 114
- Difficulty set to easy
Missing --query-organization=name or --query-organization-id=ID
however the error message should be better.
Updated by The Foreman Bot almost 8 years ago
- Status changed from New to Ready For Testing
- Assignee set to Andrew Kofink
- Translation missing: en.field_release deleted (
114) - Pull request https://github.com/Katello/hammer-cli-katello/pull/471 added
Updated by Anonymous almost 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset hammer-cli-katello|75844ddba36bbbeaccf5182579593a39680f26dd.
Updated by Justin Sherrill almost 8 years ago
- Translation missing: en.field_release set to 211
Actions