Project

General

Profile

Actions

Bug #7187

closed

Listing facts for a host fails

Added by Tomáš Strachota about 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman commands (obsolete)
Target version:
-
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

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 #1

Updated by Ori Rabin almost 10 years ago

  • Status changed from New to Assigned
  • Assignee set to Ori Rabin
Actions #2

Updated by The Foreman Bot almost 10 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/164 added
  • Pull request deleted ()
Actions #3

Updated by Ori Rabin over 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF