Skip to content

Commit d02f4d2

Browse files
Devin-Crawfordpre-commit-ci[bot]pyansys-ci-bot
authored
FIX: LSF submission string error 6182 (#6208)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
1 parent 8dd5579 commit d02f4d2

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

doc/changelog.d/6208.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
LSF submission string error 6182

src/ansys/aedt/core/desktop.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
from pathlib import Path
3838
import pkgutil
3939
import re
40+
import shlex
4041
import shutil
4142
import socket
4243
import subprocess # nosec
@@ -200,7 +201,7 @@ def launch_aedt_in_lsf(non_graphical, port): # pragma: no cover
200201
if settings.aedt_log_file:
201202
command.extend(["-Logfile", settings.aedt_log_file])
202203
else: # pragma: no cover
203-
command = settings.custom_lsf_command.split(" ")
204+
command = shlex.split(settings.custom_lsf_command)
204205
command.append("-grpcsrv")
205206
command.append(str(port))
206207
command_str = " ".join(str(x) for x in command)

0 commit comments

Comments
 (0)