mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 15:32:19 +03:00
finding module bug fixed
This commit is contained in:
parent
7005c16165
commit
f79503b032
1 changed files with 4 additions and 6 deletions
|
@ -87,9 +87,6 @@ class Plugin(threading.Thread):
|
||||||
|
|
||||||
if obj_name == "TASK":
|
if obj_name == "TASK":
|
||||||
self.logger.debug('[Plugin] Executing task')
|
self.logger.debug('[Plugin] Executing task')
|
||||||
command = Scope.get_instance().get_plugin_manager().find_command(self.getName(),
|
|
||||||
item_obj.get_plugin().get_version(),
|
|
||||||
item_obj.get_command_cls_id().lower())
|
|
||||||
self.context.put('task_id', item_obj.get_id())
|
self.context.put('task_id', item_obj.get_id())
|
||||||
|
|
||||||
if item_obj.get_file_server() is not None and item_obj.get_file_server() != 'null':
|
if item_obj.get_file_server() is not None and item_obj.get_file_server() != 'null':
|
||||||
|
@ -108,7 +105,9 @@ class Plugin(threading.Thread):
|
||||||
user)
|
user)
|
||||||
|
|
||||||
self.logger.debug('[Plugin] Handling task')
|
self.logger.debug('[Plugin] Handling task')
|
||||||
command.handle_task(task_data, self.context)
|
Scope.get_instance().get_plugin_manager().find_command(self.getName(),
|
||||||
|
item_obj.get_plugin().get_version(),
|
||||||
|
item_obj.get_command_cls_id().lower()).handle_task(task_data, self.context)
|
||||||
|
|
||||||
if self.context.data is not None and self.context.get('responseCode') is not None:
|
if self.context.data is not None and self.context.get('responseCode') is not None:
|
||||||
self.logger.debug('[Plugin] Creating response')
|
self.logger.debug('[Plugin] Creating response')
|
||||||
|
@ -158,7 +157,6 @@ class Plugin(threading.Thread):
|
||||||
|
|
||||||
self.logger.debug('[Plugin] Executing profile')
|
self.logger.debug('[Plugin] Executing profile')
|
||||||
profile_data = item_obj.get_profile_data()
|
profile_data = item_obj.get_profile_data()
|
||||||
policy_module = Scope.get_instance().get_plugin_manager().find_policy_module(item_obj.get_plugin().get_name())
|
|
||||||
self.context.put('username', item_obj.get_username())
|
self.context.put('username', item_obj.get_username())
|
||||||
|
|
||||||
execution_id = self.get_execution_id(item_obj.get_id())
|
execution_id = self.get_execution_id(item_obj.get_id())
|
||||||
|
@ -178,7 +176,7 @@ class Plugin(threading.Thread):
|
||||||
System.Sessions.display(item_obj.get_username()),
|
System.Sessions.display(item_obj.get_username()),
|
||||||
item_obj.get_username())
|
item_obj.get_username())
|
||||||
self.logger.debug('[Plugin] Handling profile')
|
self.logger.debug('[Plugin] Handling profile')
|
||||||
policy_module.handle_policy(profile_data, self.context)
|
Scope.get_instance().get_plugin_manager().find_policy_module(item_obj.get_plugin().get_name()).handle_policy(profile_data, self.context)
|
||||||
|
|
||||||
if self.context.data is not None and self.context.get('responseCode') is not None:
|
if self.context.data is not None and self.context.get('responseCode') is not None:
|
||||||
self.logger.debug('[Plugin] Creating response')
|
self.logger.debug('[Plugin] Creating response')
|
||||||
|
|
Loading…
Reference in a new issue