Project

General

Profile

Actions

Bug #23167

closed

hammer arf-report fails with undefined method `resource' for HammerCLI::MainCommand:Class

Added by Lukas Pramuk over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

# hammer arf-report
Error: undefined method `resource' for HammerCLI::MainCommand:Class

debug:

[DEBUG 2018-04-09T03:45:28 Connection] Registered: foreman
[ INFO 2018-04-09T03:45:28 Modules] Extension module hammer_cli_foreman (0.13.pre.develop) loaded.
[ INFO 2018-04-09T03:45:28 Modules] Extension module hammer_cli_foreman_admin (0.0.8) loaded.
[ INFO 2018-04-09T03:45:28 Modules] Extension module hammer_cli_foreman_bootdisk (0.1.3) loaded.
[ INFO 2018-04-09T03:45:28 Modules] Extension module hammer_cli_foreman_discovery (1.0.0) loaded.
[ INFO 2018-04-09T03:45:29 Modules] Extension module hammer_cli_foreman_openscap (0.1.6) loaded.
[ INFO 2018-04-09T03:45:29 HammerCLI::MainCommand] subcommand organization (HammerCLIForeman::Organization) was removed.
[ INFO 2018-04-09T03:45:29 HammerCLI::MainCommand] subcommand organization (HammerCLIKatello::Organization) was created.
[ INFO 2018-04-09T03:45:29 Modules] Extension module hammer_cli_katello (0.11.0) loaded.
[DEBUG 2018-04-09T03:45:29 Init] Using locale 'en'
[DEBUG 2018-04-09T03:45:29 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.pre.develop/locale'
[DEBUG 2018-04-09T03:45:29 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.13.pre.develop/locale'
[DEBUG 2018-04-09T03:45:29 Init] 'mo' files for locale domain 'hammer-cli-csv' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_csv-2.3.0/locale'
[DEBUG 2018-04-09T03:45:29 Init] 'mo' files for locale domain 'hammer_cli_foreman_docker' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman_docker-0.0.4/locale'
[DEBUG 2018-04-09T03:45:29 Init] 'mo' files for locale domain 'hammer-cli-foreman-virt-who-configure' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman_virt_who_configure-0.0.3/locale'
[DEBUG 2018-04-09T03:45:29 Init] 'mo' files for locale domain 'hammer-cli-katello' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_katello-0.11.0/locale'
[ INFO 2018-04-09T03:45:29 HammerCLI::MainCommand] Called with options: {"option_debug"=>true}
[ WARN 2018-04-09T03:45:29 HammerCLIForemanOpenscap::ArfReport] Resource 'arf_reports' does not exist in the API
[ INFO 2018-04-09T03:45:29 HammerCLIForemanOpenscap::ArfReport] Called with options: {}
[DEBUG 2018-04-09T03:45:29 Exception] Using exception handler HammerCLIForemanOpenscap::ExceptionHandler#handle_help_wanted
[DEBUG 2018-04-09T03:45:29 Exception] Using exception handler HammerCLI::ExceptionHandler#handle_general_exception
[ERROR 2018-04-09T03:45:29 Exception] Error: undefined method `resource' for HammerCLI::MainCommand:Class
Error: undefined method `resource' for HammerCLI::MainCommand:Class
[ERROR 2018-04-09T03:45:29 Exception] 

NoMethodError (undefined method `resource' for HammerCLI::MainCommand:Class):
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.pre.develop/lib/hammer_cli/apipie/resource.rb:10:in `resource'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.pre.develop/lib/hammer_cli/apipie/command.rb:41:in `help'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.pre.develop/lib/hammer_cli/exception_handler.rb:78:in `handle_help_wanted'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.pre.develop/lib/hammer_cli/exception_handler.rb:31:in `handle_exception'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.pre.develop/lib/hammer_cli/messages.rb:26:in `handle_exception'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.pre.develop/lib/hammer_cli/abstract.rb:32:in `rescue in run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.pre.develop/lib/hammer_cli/abstract.rb:28:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.pre.develop/lib/hammer_cli/abstract.rb:29:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.pre.develop/bin/hammer:143:in `<top (required)>'
    /usr/bin/hammer:22:in `load'
    /usr/bin/hammer:22:in `<main>'

foreman-1.18.0-0.develop.201804061848git210e295.el7.noarch
katello-3.7.0-1.nightly.el7.noarch

tfm-rubygem-hammer_cli-0.13.pre.develop-1.201803232224gite493035.el7.noarch
tfm-rubygem-hammer_cli_katello-0.11.0-1.201804051800git94089a6.el7.noarch
tfm-rubygem-hammer_cli_foreman-0.13.pre.develop-1.201804041834git768148d.el7.noarch
tfm-rubygem-hammer_cli_foreman_openscap-0.1.6-1.fm1_18.el7.noarch

Actions

Also available in: Atom PDF