changed behavior of increment_current_level

migration_mirror 3.7.1.6
idziubenko 3 years ago
parent 5fdb31e5c8
commit efe2b5bc3c

@ -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)
self.delete_binhost()
return True

@ -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'

Loading…
Cancel
Save