Skip to content

Commit

Permalink
[RHELC-1679] Fix of super(run()) call inside action
Browse files Browse the repository at this point in the history
Move call of the function to be in the right place. This caused issues
when the action return before reaching the super(run()) call.
  • Loading branch information
hosekadam authored and Venefilyn committed Aug 12, 2024
1 parent 9a62e34 commit b7ddd96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions convert2rhel/actions/pre_ponr_changes/handle_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ def run(self):
got merged together into this one, making possible to remove and back
up all the packages in a single transaction.
"""
super(RemoveSpecialPackages, self).run()

all_pkgs = []
pkgs_removed = []
try:
Expand Down Expand Up @@ -170,8 +172,6 @@ def run(self):
diagnosis=message,
)

super(RemoveSpecialPackages, self).run()


def _remove_packages_unless_from_redhat(pkgs_list, disable_repos=None):
"""Remove packages from the system that are not RHEL.
Expand Down

0 comments on commit b7ddd96

Please sign in to comment.