Actions
Bug #4201
closedcan't update operating system by label
Description
note that parameter is searched by name actualy
hammer -v os info --label "Fedora 19" [ INFO 2014-01-28 14:24:22 Init] Initialization of Hammer CLI (0.0.16) has started... [ INFO 2014-01-28 14:24:22 Init] Configuration from the file /etc/foreman/cli_config.yml has been loaded [ INFO 2014-01-28 14:24:22 Init] Configuration from the file /home/mbacovsk/.foreman/cli_config.yml has been loaded [ INFO 2014-01-28 14:24:22 Modules] Extension module hammer_cli_foreman (0.0.17) loaded [ INFO 2014-01-28 14:24:22 HammerCLI::MainCommand] Called with options: {"option_verbose"=>true} [ INFO 2014-01-28 14:24:22 HammerCLIForeman::OperatingSystem] Called with options: {} [DEBUG 2014-01-28 14:24:22 ForemanApi::Resources::OperatingSystem] Calling 'index' with params { :search => "name = Fedora 19" } [DEBUG 2014-01-28 14:24:22 ForemanApi::Resources::OperatingSystem] Method 'index' responded with { "total" => 2, "subtotal" => 0, "page" => 1, "per_page" => 20, "search" => "name = Fedora 19", "sort" => { "by" => nil, "order" => nil }, "results" => [] } [ERROR 2014-01-28 14:24:22 Exception] Error: operatingsystem with label 'Fedora 19' not found Error: operatingsystem with label 'Fedora 19' not found [ERROR 2014-01-28 14:24:22 Exception] RuntimeError (operatingsystem with label 'Fedora 19' not found): /home/mbacovsk/work/theforeman/hammer-cli/lib/hammer_cli/apipie/command.rb:88:in `name_to_id' /home/mbacovsk/work/theforeman/hammer-cli/lib/hammer_cli/apipie/command.rb:80:in `block in identifier_option' /home/mbacovsk/work/theforeman/hammer-cli/lib/hammer_cli/abstract.rb:210:in `instance_exec' /home/mbacovsk/work/theforeman/hammer-cli/lib/hammer_cli/abstract.rb:210:in `block in define_simple_writer_for' /home/mbacovsk/.gem/ruby/gems/clamp-0.6.3/lib/clamp/attribute/instance.rb:62:in `take' /home/mbacovsk/.gem/ruby/gems/clamp-0.6.3/lib/clamp/option/parsing.rb:32:in `parse_options' /home/mbacovsk/.gem/ruby/gems/clamp-0.6.3/lib/clamp/command.rb:52:in `parse' /home/mbacovsk/work/theforeman/hammer-cli/lib/hammer_cli/abstract.rb:30:in `parse' /home/mbacovsk/.gem/ruby/gems/clamp-0.6.3/lib/clamp/command.rb:66:in `run' /home/mbacovsk/work/theforeman/hammer-cli/lib/hammer_cli/abstract.rb:22:in `run' /home/mbacovsk/.gem/ruby/gems/clamp-0.6.3/lib/clamp/subcommand/execution.rb:11:in `execute' /home/mbacovsk/.gem/ruby/gems/clamp-0.6.3/lib/clamp/command.rb:67:in `run' /home/mbacovsk/work/theforeman/hammer-cli/lib/hammer_cli/abstract.rb:22:in `run' /home/mbacovsk/.gem/ruby/gems/clamp-0.6.3/lib/clamp/subcommand/execution.rb:11:in `execute' /home/mbacovsk/.gem/ruby/gems/clamp-0.6.3/lib/clamp/command.rb:67:in `run' /home/mbacovsk/work/theforeman/hammer-cli/lib/hammer_cli/abstract.rb:22:in `run' /home/mbacovsk/.gem/ruby/gems/clamp-0.6.3/lib/clamp/command.rb:125:in `run' /home/mbacovsk/work/theforeman/hammer-cli/bin/hammer:61:in `<top (required)>' /home/mbacovsk/.gem/ruby/bin/hammer:23:in `load' /home/mbacovsk/.gem/ruby/bin/hammer:23:in `<main>'
Updated by Joseph Magen almost 11 years ago
- Status changed from New to Ready For Testing
- Assignee set to Joseph Magen
https://github.com/theforeman/foreman/pull/1225
can now update by `to_label` which is description (if it exists) or fullname (if description does not exist)
Updated by Dominic Cleal almost 11 years ago
- Project changed from Hammer CLI to Foreman
- Category changed from Foreman commands (obsolete) to API
Updated by Joseph Magen almost 11 years ago
Martin, can you check this
https://github.com/theforeman/foreman/pull/1225
Updated by Anonymous over 10 years ago
- Target version changed from 1.9.1 to 1.9.0
Updated by Dominic Cleal over 10 years ago
- Translation missing: en.field_release set to 4
Updated by Joseph Magen over 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 42c9541f1de0cf751ab5f454ecef2ea5616b9ac3.
Actions