Skip to content

Commit

Permalink
Refs #33620 - update messages in self-upgrade scenario
Browse files Browse the repository at this point in the history
(cherry picked from commit c3fe0c5)
  • Loading branch information
upadhyeammit committed Mar 7, 2022
1 parent 8327cfb commit 646151b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions definitions/scenarios/self_upgrade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def repos_ids_to_reenable
class SelfUpgrade < SelfUpgradeBase
metadata do
label :self_upgrade_foreman_maintain
description "Enables the specified version's maintenance repository and, "\
'updates the foreman-maintain packages'
description "Enables the specified version's maintenance repository and,"\
"\nupdates the satellite-maintain packages"
manual_detection
end

Expand All @@ -87,8 +87,8 @@ def compose
class SelfUpgradeRescue < SelfUpgradeBase
metadata do
label :rescue_self_upgrade
description 'Disables all version specific maintenance repos and,'\
' enables the repositories which were configured prior to self upgrade'
description 'Disables all version specific maintenance repositories and,'\
"\nenables the repositories which were configured prior to self upgrade"
manual_detection
run_strategy :fail_slow
end
Expand Down
3 changes: 2 additions & 1 deletion lib/foreman_maintain/cli/self_upgrade_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def allow_major_version_upgrade_only
end
if current_downstream_version >= next_version
message = "The target-version #{target_version} should be "\
"greater than existing version #{current_downstream_version}!"
"greater than existing version #{current_downstream_version},"\
"\nand self-upgrade should be used for major version upgrades only!"
raise Error::UsageError, message
end
end
Expand Down

0 comments on commit 646151b

Please sign in to comment.