diff --git a/opt/ahenk/base/Scope.py b/opt/ahenk/base/Scope.py index 158fef5..5aff3a2 100644 --- a/opt/ahenk/base/Scope.py +++ b/opt/ahenk/base/Scope.py @@ -112,4 +112,4 @@ class Scope(object): self.scheduler = scheduler def get_scheduler(self): - return self.scheduler \ No newline at end of file + return self.scheduler diff --git a/opt/ahenk/base/registration/Registration.py b/opt/ahenk/base/registration/Registration.py index c64b3e7..ff4aad2 100644 --- a/opt/ahenk/base/registration/Registration.py +++ b/opt/ahenk/base/registration/Registration.py @@ -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() diff --git a/opt/ahenk/base/task/TaskManager.py b/opt/ahenk/base/task/TaskManager.py index 5d9703b..75486af 100644 --- a/opt/ahenk/base/task/TaskManager.py +++ b/opt/ahenk/base/task/TaskManager.py @@ -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)))