Skip to content

Commit

Permalink
Replace AssertDistroIsAlmalinux8 with AssertDistroIsCloudLinux8
Browse files Browse the repository at this point in the history
  • Loading branch information
kpushkaryov committed Jul 11, 2024
1 parent bb4d129 commit 0a72bb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions cloudlinux7to8/actions/common_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
from pleskdistup.common import action, dist, files, log, version


class AssertDistroIsAlmalinux8(action.CheckAction):
def __init__(self):
self.name = "checking if distro is AlmaLinux8"
self.description = "You are running a distributive other than AlmaLinux 8. The finalization stage can only be started on AlmaLinux 8."
class AssertDistroIsCloudLinux8(action.CheckAction):
def __init__(self) -> None:
self.name = "checking if distro is CloudLinux 8"
self.description = "You are running a distribution other than CloudLinux 8. The finalization stage can only be started on CloudLinux 8."

def _do_check(self) -> bool:
return dist.get_distro() == dist.AlmaLinux("8")
return dist.get_distro() == dist.CloudLinux("8")


class AssertNoMoreThenOneKernelNamedNIC(action.CheckAction):
Expand Down
2 changes: 1 addition & 1 deletion cloudlinux7to8/upgrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def get_check_actions(
phase: Phase
) -> typing.List[action.CheckAction]:
if phase is Phase.FINISH:
return [custom_actions.AssertDistroIsAlmalinux8()]
return [custom_actions.AssertDistroIsCloudLinux8()]

FIRST_SUPPORTED_BY_ALMA_8_PHP_VERSION = "7.1"
checks = [
Expand Down

0 comments on commit 0a72bb1

Please sign in to comment.