Bug #21208
closedOption -y, --assumeyes in upgrade run do not answer yes for yum update
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1495633
Description of problem: We were trying to run upgrade with --assumeyes option.But still while performing yum update it will ask for answer.
*Version-Release number of selected component (if applicable):*Foreman-maintain snap 2.0
*How reproducible:*always
Steps to Reproduce:
1.# foreman-maintain upgrade run -h
Usage:
foreman-maintain upgrade run [OPTIONS]
Options:
--target-version TARGET_VERSION Target version of the upgrade
-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
--phase phase run only a specific phase
-h, --help print help
2.# foreman-maintain upgrade run --target-version 6.3 -w "repositories-setup" -y
Actual results:
Ask for answer while yum update
Transaction Summary
=========================================================================================================================================
Install 7 Packages (+85 Dependent packages)
Upgrade 172 Packages
Total download size: 105 M
Is this ok [y/d/N]:
Expected results:
It should not ask for yes if -y /--assumeyes option is passed.
Additional info:
Updated by The Foreman Bot over 6 years ago
- Pull request https://github.com/theforeman/foreman_maintain/pull/107 added
Updated by The Foreman Bot over 6 years ago
- Pull request https://github.com/theforeman/foreman_maintain/pull/115 added
Updated by Kavita Gaikwad over 6 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_maintain|461c01aceba742ca0bd936dab85daa47b198590d.