Project

General

Profile

Bug #21208

Option -y, --assumeyes in upgrade run do not answer yes for yum update

Added by Swapnil Abnave about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:

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:

Associated revisions

Revision 461c01ac (diff)
Added by Kavita Gaikwad about 3 years ago

Fixes #21208 - set value of assumeyes to true for package update

History

#1 Updated by The Foreman Bot about 3 years ago

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

#2 Updated by The Foreman Bot about 3 years ago

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

#3 Updated by Kavita Gaikwad about 3 years ago

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

Also available in: Atom PDF