Bug #20868

[advanced procedure by-tag pre/post-migrations] undefined method `params_for_procedure'

Added by Swapnil Abnave 2 months ago. Updated 2 months ago.

Status:Closed
Priority:Normal
Assigned To:Swapnil Abnave
Category:Procedure
Target version:next version
Difficulty:trivial Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/foreman_maintain/pull/94
Story points-
Velocity based estimate-

Description

Error while executing advanced procedure command


I, [2017-09-07 05:43:47-0400 #2117]  INFO -- : Running foreman-maintain command with arguments [["advanced", "procedure", "by-tag", "pre-migrations"]]
E, [2017-09-07 05:43:47-0400 #2117] ERROR -- : undefined method `params_for_procedure' for #<#<Class:0x000000026967c8>:0x0000000274aca0> (NoMethodError)
/root/foreman_maintain/lib/foreman_maintain/cli/advanced/procedure/abstract_by_tag_command.rb:31:in `block in execute'
/root/foreman_maintain/lib/foreman_maintain/cli/advanced/procedure/abstract_by_tag_command.rb:30:in `each'
/root/foreman_maintain/lib/foreman_maintain/cli/advanced/procedure/abstract_by_tag_command.rb:30:in `execute'
/usr/local/rvm/gems/ruby-2.2.0@foreman_maintain/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
/usr/local/rvm/gems/ruby-2.2.0@foreman_maintain/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/local/rvm/gems/ruby-2.2.0@foreman_maintain/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
/usr/local/rvm/gems/ruby-2.2.0@foreman_maintain/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/local/rvm/gems/ruby-2.2.0@foreman_maintain/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
/usr/local/rvm/gems/ruby-2.2.0@foreman_maintain/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/local/rvm/gems/ruby-2.2.0@foreman_maintain/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
/usr/local/rvm/gems/ruby-2.2.0@foreman_maintain/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/local/rvm/gems/ruby-2.2.0@foreman_maintain/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
/root/foreman_maintain/lib/foreman_maintain/cli.rb:21:in `run'
/usr/local/rvm/gems/ruby-2.2.0@foreman_maintain/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
./bin/foreman-maintain:12:in `<main>'

Associated revisions

Revision 6cdbd5bb
Added by Swapnil Abnave 2 months ago

Fixes #20868 - Use correct method 'get_params_for'

History

#1 Updated by The Foreman Bot 2 months ago

  • Pull request https://github.com/theforeman/foreman_maintain/pull/94 added

#2 Updated by Kavita Gaikwad 2 months ago

  • Status changed from New to Assigned

#3 Updated by Swapnil Abnave 2 months ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF