Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
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: Satellite 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.