mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 09:42:15 +03:00
minor fixings
This commit is contained in:
parent
4eb03dacde
commit
2cd4de94e6
3 changed files with 3 additions and 3 deletions
|
@ -112,4 +112,4 @@ class Scope(object):
|
|||
self.scheduler = scheduler
|
||||
|
||||
def get_scheduler(self):
|
||||
return self.scheduler
|
||||
return self.scheduler
|
||||
|
|
|
@ -12,7 +12,7 @@ from base.messaging.AnonymousMessenger import AnonymousMessager
|
|||
from base.system.system import System
|
||||
|
||||
|
||||
class Registration():
|
||||
class Registration:
|
||||
def __init__(self):
|
||||
scope = Scope().getInstance()
|
||||
self.logger = scope.getLogger()
|
||||
|
|
|
@ -43,7 +43,7 @@ class TaskManager(object):
|
|||
plugin_args = [str(task.get_plugin().get_active()), str(task.get_plugin().get_create_date()), str(task.get_plugin().get_deleted()), str(task.get_plugin().get_description()), str(task.get_plugin().get_machine_oriented()), str(task.get_plugin().get_modify_date()), str(task.get_plugin().get_name()), str(task.get_plugin().get_policy_plugin()), str(task.get_plugin().get_user_oriented()), str(task.get_plugin().get_version()), str(task.get_plugin().get_task_plugin()), str(task.get_plugin().get_x_based())]
|
||||
plugin_id = self.db_service.update('plugin', plu_cols, plugin_args)
|
||||
values = [str(task.get_id()), str(task.get_create_date()), str(task.get_modify_date()), str(task.get_command_cls_id()), str(task.get_parameter_map()), str(task.get_deleted()), str(plugin_id),str(task.get_cron_str())]
|
||||
self.db_service.update('task', task_cols, values, None)
|
||||
self.db_service.update('task', task_cols, values)
|
||||
except Exception as e:
|
||||
self.logger.error("[TaskManager] Exception occurred while saving task. Error Message: {}".format(str(e)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue