Browse Source

[Update] 支持Windows批量命令2

pull/3559/head
BaiJiangJie 5 years ago
parent
commit
f063832bc6
  1. 2
      apps/ops/models/command.py

2
apps/ops/models/command.py

@ -63,7 +63,7 @@ class CommandExecution(models.Model):
if ok:
runner = CommandRunner(self.inventory)
try:
host = self.hosts[0]
host = self.hosts.first()
if host.is_windows():
shell = 'win_shell'
else:

Loading…
Cancel
Save