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