Bug 1497134 - Repeated --assumeyes option in help
Summary: Repeated --assumeyes option in help
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Foreman Maintain
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: Unspecified
Assignee: Kavita
QA Contact: Nikhil Kathole
URL:
Whiteboard:
Depends On:
Blocks: 1496794
TreeView+ depends on / blocked
 
Reported: 2017-09-29 09:22 UTC by Nikhil Kathole
Modified: 2020-03-05 16:19 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-05 16:19:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 21320 0 Normal Closed Repeated --assumeyes option in help 2020-04-27 14:48:55 UTC

Description Nikhil Kathole 2017-09-29 09:22:02 UTC
Description of problem: Help for foreman-maintain advanced procedure run packages-update/ packages-install shows two times --assumeyes.


Version-Release number of selected component (if applicable): Foreman-maintain 2.0


How reproducible: always


Steps to Reproduce:
1. # foreman-maintain advanced procedure run packages-update -h
Usage:
    foreman-maintain advanced procedure run packages-update [OPTIONS]

Options:
    --packages PACKAGES           List of packages to update (comma-separated list)
    --assumeyes ASSUMEYES         Do not ask for confirmation
    -y, --assumeyes               Automatically answer yes for all questions
    -w, --whitelist whitelist     Comma-separated list of labels of steps to be ignored
    -f, --force                   Force steps that would be skipped as they were already run
    -h, --help                    print help

2. # foreman-maintain advanced procedure run packages-install -h
Usage:
    foreman-maintain advanced procedure run packages-install [OPTIONS]

Options:
    --packages PACKAGES           List of packages to install (comma-separated list)
    --assumeyes ASSUMEYES         Do not ask for confirmation
    -y, --assumeyes               Automatically answer yes for all questions
    -w, --whitelist whitelist     Comma-separated list of labels of steps to be ignored
    -f, --force                   Force steps that would be skipped as they were already run
    -h, --help                    print help


Actual results:


Expected results:


Additional info:

Comment 2 Satellite Program 2018-01-09 09:20:16 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/21320 has been resolved.

Comment 3 Nikhil Kathole 2018-08-10 08:55:32 UTC
VERIFIED

Version tested:

# rpm -qa | grep maintain
rubygem-foreman_maintain-0.2.6-1.el7sat.noarch

# foreman-maintain advanced procedure run packages-install -h
Usage:
    foreman-maintain advanced procedure run packages-install [OPTIONS]

Options:
    --packages PACKAGES           List of packages to install (comma-separated list)
    -y, --assumeyes               Automatically answer yes for all questions
    -w, --whitelist whitelist     Comma-separated list of labels of steps to be skipped
    -f, --force                   Force steps that would be skipped as they were already run
    -h, --help                    print help

# foreman-maintain advanced procedure run packages-update -h
Usage:
    foreman-maintain advanced procedure run packages-update [OPTIONS]

Options:
    --packages PACKAGES           List of packages to update (comma-separated list)
    -y, --assumeyes               Automatically answer yes for all questions
    -w, --whitelist whitelist     Comma-separated list of labels of steps to be skipped
    -f, --force                   Force steps that would be skipped as they were already run
    -h, --help                    print help

Comment 4 Bryan Kearney 2020-03-05 16:19:46 UTC
The current version of foreman_maintain includes this fix.


Note You need to log in before you can comment on or make changes to this bug.