Actions
Bug #7187
closedListing facts for a host fails
Difficulty:
Triaged:
Team Backlog:
Description
It complains about uninitialized constant HammerCLIForeman::Fact
hammer -d host facts --id 394 [ INFO 2014-08-21 09:59:38 Init] Initialization of Hammer CLI (0.1.3) has started... [DEBUG 2014-08-21 09:59:38 Init] Running at ruby 1.9.3-p547 [ INFO 2014-08-21 09:59:38 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded [ INFO 2014-08-21 09:59:38 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded [ INFO 2014-08-21 09:59:38 Init] Configuration from the file /etc/hammer/cli.modules.d/katello.yml has been loaded [ INFO 2014-08-21 09:59:38 Init] Configuration from the file /root/.hammer/cli_config.yml has been loaded [DEBUG 2014-08-21 09:59:39 Connection] Registered: foreman [DEBUG 2014-08-21 09:59:39 API] Global headers: { :content_type => "application/json", :accept => "application/json;version=2", "Accept-Language" => "en" } [ INFO 2014-08-21 09:59:39 API] GET /apidoc/apipie_checksum [DEBUG 2014-08-21 09:59:39 API] Params: {} [DEBUG 2014-08-21 09:59:39 API] Headers: { :accept => "application/json", :params => {} } [DEBUG 2014-08-21 09:59:39 API] Response { "checksum" => "80c44291fc73092fd57c2ad4d1cb697e" } [ INFO 2014-08-21 09:59:39 Modules] Extension module hammer_cli_foreman (0.1.3) loaded [DEBUG 2014-08-21 09:59:39 Init] Using locale 'en' [DEBUG 2014-08-21 09:59:39 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/root/hammer/hammer-cli/locale' [DEBUG 2014-08-21 09:59:39 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/usr/share/locale' [DEBUG 2014-08-21 09:59:39 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/root/hammer/hammer-cli-foreman/locale' [DEBUG 2014-08-21 09:59:39 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/usr/share/locale' [ INFO 2014-08-21 09:59:39 HammerCLI::MainCommand] Called with options: {"option_debug"=>true} [ INFO 2014-08-21 09:59:39 HammerCLIForeman::Host] Called with options: {} [ INFO 2014-08-21 09:59:39 HammerCLIForeman::Host::FactsCommand] Called with options: {"option_id"=>"394"} [ERROR 2014-08-21 09:59:39 Exception] Error: uninitialized constant HammerCLIForeman::Fact Error: uninitialized constant HammerCLIForeman::Fact [ERROR 2014-08-21 09:59:39 Exception] NameError (uninitialized constant HammerCLIForeman::Fact): /root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/host.rb:286:in `send_request' /root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/commands.rb:254:in `retrieve_and_print' /root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/commands.rb:241:in `browse_collection' /root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/commands.rb:226:in `execute' /usr/local/rvm/gems/ruby-1.9.3-p547/gems/clamp-0.6.3/lib/clamp/command.rb:67:in `run' /root/hammer/hammer-cli/lib/hammer_cli/abstract.rb:22:in `run' /usr/local/rvm/gems/ruby-1.9.3-p547/gems/clamp-0.6.3/lib/clamp/subcommand/execution.rb:11:in `execute' /usr/local/rvm/gems/ruby-1.9.3-p547/gems/clamp-0.6.3/lib/clamp/command.rb:67:in `run' /root/hammer/hammer-cli/lib/hammer_cli/abstract.rb:22:in `run' /usr/local/rvm/gems/ruby-1.9.3-p547/gems/clamp-0.6.3/lib/clamp/subcommand/execution.rb:11:in `execute' /usr/local/rvm/gems/ruby-1.9.3-p547/gems/clamp-0.6.3/lib/clamp/command.rb:67:in `run' /root/hammer/hammer-cli/lib/hammer_cli/abstract.rb:22:in `run' /usr/local/rvm/gems/ruby-1.9.3-p547/gems/clamp-0.6.3/lib/clamp/command.rb:125:in `run' ./bin/hammer:106:in `<main>'
Actions