Project

General

Profile

Actions

Bug #20898

closed

remove params from runtime_message by default

Added by Kavita Gaikwad over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Low
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Currently, we have added runtime_message method which shows description + param details.
For some procedure, we don't need to show param details in round brackets.

As in "investigate the tasks via UI" procedure it showing below output:

  1. ./bin/foreman-maintain health check
    Running ForemanMaintain::Scenario::FilteredScenario ================================================================================
    Check for verifying syntax for ISP DHCP configurations: [OK]
    --------------------------------------------------------------------------------
    check for paused tasks: [FAIL]
    There are currently 46 paused tasks in the system
    --------------------------------------------------------------------------------
    There are multiple steps to proceed:
    1) resume paused tasks
    2) investigate the tasks via UI ({:search_query=>#<ForemanMaintain::Param:0x000000012cb400 @name=:search_query, @description="", @options={}, @required=false, @flag=false, @block=nil, @array=false>})
    Select step to continue, [n(next), q(quit)] 2
    investigate the tasks via UI:
    Go to https://satellite1.example.com/foreman_tasks/tasks?search=state+%3D+paused+AND+label+%21%5E%28Actions%3A%3ACandlepin%3A%3AListenOnCandlepinEvents+Actions%3A%3AKatello%3A%3AEventQueue%3A%3AMonitor%29
    press ENTER after the paused tasks are resolved.
Actions #1

Updated by Kavita Gaikwad over 6 years ago

  • Subject changed from Overide runtime_message method for procedure "investigate the tasks via UI" to Override runtime_message method for procedure "investigate the tasks via UI"
Actions #2

Updated by Kavita Gaikwad over 6 years ago

  • Subject changed from Override runtime_message method for procedure "investigate the tasks via UI" to remove params from runtime_message by default

Instead of overriding runtime_message everywhere there is params defined, remove it from runtime_message by default.

Actions #3

Updated by Ivan Necas over 6 years ago

  • Target version changed from 216 to next version
Actions #4

Updated by The Foreman Bot over 6 years ago

  • Pull request https://github.com/theforeman/foreman_maintain/pull/97 added
Actions #5

Updated by Kavita Gaikwad over 6 years ago

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

Also available in: Atom PDF