Skip to content

Commit

Permalink
enable the correct module during the capsule upgrade
Browse files Browse the repository at this point in the history
Fixes: 041af1e
  • Loading branch information
evgeni committed Jun 26, 2024
1 parent fa6db1e commit 32f825e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions definitions/features/capsule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ def current_version
def package_name
'satellite-capsule'
end

def module_name
'satellite-capsule'
end
end
4 changes: 4 additions & 0 deletions definitions/features/satellite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ def package_name
'satellite'
end

def module_name
'satellite'
end

private

def version_from_source
Expand Down
2 changes: 1 addition & 1 deletion definitions/scenarios/satellite_upgrade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def compose
if el8?
modules_to_switch = ['postgresql:13']
add_step(Procedures::Packages::SwitchModules.new(:module_names => modules_to_switch))
modules_to_enable = ["satellite:#{el_short_name}"]
modules_to_enable = ["#{feature(:instance).downstream.module_name}:#{el_short_name}"]
add_step(Procedures::Packages::EnableModules.new(:module_names => modules_to_enable))
end
add_step(Procedures::Packages::Update.new(
Expand Down

0 comments on commit 32f825e

Please sign in to comment.