From f27e466cc8a6d75a7d6d114769a7932cba12769d Mon Sep 17 00:00:00 2001 From: Mikhail Sandakov Date: Wed, 10 Jul 2024 10:49:09 +0300 Subject: [PATCH] Do not run pre-checks when reverting An issue has already occurred, and we are trying to restore the instance to a working state. Therefore, there is no need for checks at this point. --- pleskdistup/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pleskdistup/main.py b/pleskdistup/main.py index 578dfd8..31dceac 100644 --- a/pleskdistup/main.py +++ b/pleskdistup/main.py @@ -209,7 +209,7 @@ def do_convert( util_name: str, show_plan: bool, ) -> int: - if not options.resume and not required_conditions_satisfied(upgrader, options, options.phase): + if not options.resume and not options.phase == Phase.REVERT and not required_conditions_satisfied(upgrader, options, options.phase): printerr("Conversion can't be performed due to the problems noted above") if not show_plan: return 1