diff --git a/src/core/pyros_django/agent/Agent.py b/src/core/pyros_django/agent/Agent.py index 3161f9f..c57f92a 100755 --- a/src/core/pyros_django/agent/Agent.py +++ b/src/core/pyros_django/agent/Agent.py @@ -329,9 +329,12 @@ class Agent: # To be overriden by subclasses (empty by default, no agent specific command) AGENT_SPECIFIC_COMMANDS = [ - "do_specific1", - "set_specific2", - "do_specific3", + #"do_specific1", + #"set_specific2", + #"do_specific3", + ("do_specific1",10), + ("set_specific2",5), + ("do_specific3",3), ] # @@ -2028,7 +2031,10 @@ class Agent: ''' def _is_agent_specific_cmd(self, cmd:AgentCmd): - return cmd.name in self.AGENT_SPECIFIC_COMMANDS + #return cmd.name in self.AGENT_SPECIFIC_COMMANDS + #return (cmd.name,) in self.AGENT_SPECIFIC_COMMANDS + for (cmd_name,timeout) in self.AGENT_SPECIFIC_COMMANDS: + if cmd.name == cmd_name : return True ''' def _exec_agent_specific_cmd(self, cmd:Command): -- libgit2 0.21.2