Commit f063832b authored by BaiJiangJie's avatar BaiJiangJie

[Update] 支持Windows批量命令2

parent 1d30c190
...@@ -63,7 +63,7 @@ class CommandExecution(models.Model): ...@@ -63,7 +63,7 @@ class CommandExecution(models.Model):
if ok: if ok:
runner = CommandRunner(self.inventory) runner = CommandRunner(self.inventory)
try: try:
host = self.hosts[0] host = self.hosts.first()
if host.is_windows(): if host.is_windows():
shell = 'win_shell' shell = 'win_shell'
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment