Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hammer command "import-template" fails on Foreman 3.5 #169

Open
hlinden-gon opened this issue Jan 31, 2023 · 0 comments
Open

hammer command "import-template" fails on Foreman 3.5 #169

hlinden-gon opened this issue Jan 31, 2023 · 0 comments

Comments

@hlinden-gon
Copy link

  • foreman-release-3.5.1-1.el8.noarch
  • rubygem-katello-4.7.0-1.el8.noarch
  • rubygem-hammer_cli-3.5.0-1.el8.noarch
  • rubygem-hammer_cli_foreman-3.5.0-1.el8.noarch
  • rubygem-foreman_templates-9.3.0-2.fm3_5.el8.noarch
  • rubygem-hammer_cli_foreman_templates-0.2.0-3.fm3_5.el8.noarch

Currently trying to retrigger an import that ran successfully with foreman-rake templates:import ends like this:

hammer> import-templates
[ INFO 2023-01-31T09:56:25 HammerCLI::ShellMainCommand] Called with options: {}
[DEBUG 2023-01-31T09:56:25 HammerCLIForeman::CommandExtensions::OptionSources] Called block for HammerCLIForeman::Command option sources:
	#<Proc:0x00005589152b2c78 /usr/share/gems/gems/hammer_cli_foreman-3.5.0/lib/hammer_cli_foreman/command_extensions/option_sources.rb:6>
[DEBUG 2023-01-31T09:56:25 Exception] Using exception handler HammerCLIForemanTemplates::ExceptionHandler#handle_general_exception
[ERROR 2023-01-31T09:56:25 Exception] Fehler: undefined method `action' for nil:NilClass
Could not import:
  Fehler: undefined method `action' for nil:NilClass
[ERROR 2023-01-31T09:56:25 Exception] 

NoMethodError (undefined method `action' for nil:NilClass):
    /usr/share/gems/gems/hammer_cli_foreman-3.5.0/lib/hammer_cli_foreman/option_sources/id_params.rb:13:in `available_id_params'
    /usr/share/gems/gems/hammer_cli_foreman-3.5.0/lib/hammer_cli_foreman/option_sources/id_params.rb:43:in `get_options'
    /usr/share/gems/gems/hammer_cli-3.5.0/lib/hammer_cli/options/sources/base.rb:8:in `process'
    /usr/share/gems/gems/hammer_cli-3.5.0/lib/hammer_cli/options/processor_list.rb:22:in `block in process'
    /usr/share/gems/gems/hammer_cli-3.5.0/lib/hammer_cli/options/processor_list.rb:21:in `each'
    /usr/share/gems/gems/hammer_cli-3.5.0/lib/hammer_cli/options/processor_list.rb:21:in `inject'
    /usr/share/gems/gems/hammer_cli-3.5.0/lib/hammer_cli/options/processor_list.rb:21:in `process'
    /usr/share/gems/gems/hammer_cli-3.5.0/lib/hammer_cli/options/processor_list.rb:22:in `block in process'
    /usr/share/gems/gems/hammer_cli-3.5.0/lib/hammer_cli/options/processor_list.rb:21:in `each'
    /usr/share/gems/gems/hammer_cli-3.5.0/lib/hammer_cli/options/processor_list.rb:21:in `inject'
    /usr/share/gems/gems/hammer_cli-3.5.0/lib/hammer_cli/options/processor_list.rb:21:in `process'
    /usr/share/gems/gems/hammer_cli-3.5.0/lib/hammer_cli/options/option_collector.rb:17:in `all_options_raw'
    /usr/share/gems/gems/hammer_cli-3.5.0/lib/hammer_cli/options/option_collector.rb:21:in `all_options'
    /usr/share/gems/gems/hammer_cli-3.5.0/lib/hammer_cli/options/option_collector.rb:25:in `options'
    /usr/share/gems/gems/hammer_cli-3.5.0/lib/hammer_cli/abstract.rb:389:in `options'
    /usr/share/gems/gems/hammer_cli-3.5.0/lib/hammer_cli/abstract.rb:117:in `parse'
    /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:62:in `run'
    /usr/share/gems/gems/hammer_cli-3.5.0/lib/hammer_cli/abstract.rb:103:in `run'
    /usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
    /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
    /usr/share/gems/gems/hammer_cli-3.5.0/lib/hammer_cli/abstract.rb:103:in `run'
    /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
    /usr/share/gems/gems/hammer_cli-3.5.0/lib/hammer_cli/shell.rb:100:in `execute'
    /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
    /usr/share/gems/gems/hammer_cli-3.5.0/lib/hammer_cli/abstract.rb:103:in `run'
    /usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
    /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
    /usr/share/gems/gems/hammer_cli-3.5.0/lib/hammer_cli/abstract.rb:103:in `run'
    /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
    /usr/share/gems/gems/hammer_cli-3.5.0/bin/hammer:147:in `<top (required)>'
    /bin/hammer:23:in `load'
    /bin/hammer:23:in `<main>'


hammer> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant