From efe2b5bc3c1964f5a3bfb8def35d9e79e6dca380 Mon Sep 17 00:00:00 2001 From: idziubenko Date: Fri, 29 Oct 2021 11:45:48 +0300 Subject: [PATCH] changed behavior of increment_current_level --- pym/update/update.py | 6 ++++-- pym/update/utils/cl_update.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pym/update/update.py b/pym/update/update.py index 1ecf878..3cf27ff 100644 --- a/pym/update/update.py +++ b/pym/update/update.py @@ -1823,9 +1823,11 @@ class Update(MethodsInterface): pass return True - def update_set_current_level(self): + def update_increment_current_level(self): current_level = int(self.clVars.Get('cl_update_level')) self.clVars.Write('cl_update_level', str(current_level + 1), location="system") self.clVars.Set("update.cl_update_use_migration_host", - Variable.Off) \ No newline at end of file + Variable.Off) + self.delete_binhost() + return True \ No newline at end of file diff --git a/pym/update/utils/cl_update.py b/pym/update/utils/cl_update.py index 4909311..451cbde 100644 --- a/pym/update/utils/cl_update.py +++ b/pym/update/utils/cl_update.py @@ -452,7 +452,7 @@ class ClUpdateAction(Action): }, # #TODO {'name': 'update:set_current_level', - 'method': 'Update.update_set_current_level()', + 'method': 'Update.update_increment_current_level()', 'depend': Tasks.success(), 'condition': lambda Get: Get('cl_update_sync_only_set') == 'off' and Get('update.cl_update_use_migration_host') == 'on'