mirror of https://github.com/jumpserver/jumpserver
[Update] 支持Windows批量命令2
parent
1d30c1900d
commit
f063832bc6
|
@ -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…
Reference in New Issue