[Update] 支持Windows批量命令2

pull/3559/head
BaiJiangJie 2019-12-23 11:22:46 +08:00
parent 1d30c1900d
commit f063832bc6
1 changed files with 1 additions and 1 deletions

View File

@ -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: