fix: match Force/NoInput where needed
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-03-12 16:15:20 +01:00
parent a8f35bdf2f
commit f39e186b66
3 changed files with 4 additions and 3 deletions

View File

@ -129,7 +129,7 @@ recipes.
var chosenUpgrade string
if len(availableUpgrades) > 0 && !internal.Chaos {
if internal.Force {
if internal.Force || internal.NoInput {
chosenUpgrade = availableUpgrades[len(availableUpgrades)-1]
logrus.Debugf("choosing %s as version to upgrade to", chosenUpgrade)
} else {