diff --git a/cloudlinux7to8/actions/common_checks.py b/cloudlinux7to8/actions/common_checks.py index 01f90c8..27884ec 100644 --- a/cloudlinux7to8/actions/common_checks.py +++ b/cloudlinux7to8/actions/common_checks.py @@ -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): diff --git a/cloudlinux7to8/upgrader.py b/cloudlinux7to8/upgrader.py index 85bd645..c02f58b 100644 --- a/cloudlinux7to8/upgrader.py +++ b/cloudlinux7to8/upgrader.py @@ -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 = [