Commit 4c4002e1e27615836277c4585a1bc2c8e55e1293
1 parent
71783855
Exists in
dev
Agent.py: create_cmd_for return cmd
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/core/pyros_django/agent/Agent.py
... | ... | @@ -1824,8 +1824,8 @@ class Agent: |
1824 | 1824 | """ |
1825 | 1825 | #return AgentCmd.send_cmd_from_to(self.name, self._get_real_agent_name_for_alias(to_agent), cmd_name, cmd_args) |
1826 | 1826 | #cmd = self.create_cmd_for(to_agent, cmd_name, cmd_args, validity, timeout).send() |
1827 | - cmd = self.create_cmd_for(to_agent, cmd_name, cmd_args, validity).send() | |
1828 | - #cmd.send() | |
1827 | + cmd = self.create_cmd_for(to_agent, cmd_name, cmd_args, validity) | |
1828 | + cmd.send() | |
1829 | 1829 | return cmd |
1830 | 1830 | |
1831 | 1831 | def create_cmd_for(self, to_agent:str, cmd_name:str, cmd_args:str=None, validity:int=None) -> AgentCmd: | ... | ... |