Skip to content

Commit 65a5d4f

Browse files
koubaaMohamed Koubaapyansys-ci-bot
authored
fix: fix run_dyna (#658)
Co-authored-by: Mohamed Koubaa <[email protected]> Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 183e787 commit 65a5d4f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

doc/changelog/658.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix run_dyna

src/ansys/dyna/core/run/local_solver.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ def run_dyna(input: typing.Union[str, object], **kwargs) -> str:
145145
container = os.environ.get("PYDYNA_RUN_CONTAINER", None)
146146
if container != None:
147147
kwargs["container"] = container
148-
if "container_env" not in kwargs:
149-
kwargs["container_env"] = dict(
150-
(k, os.environ[k]) for k in ("LSTC_LICENSE", "ANSYSLI_SERVERS", "ANSYSLMD_LICENSE_FILE")
151-
)
148+
if "container_env" not in kwargs:
149+
kwargs["container_env"] = dict(
150+
(k, os.environ[k]) for k in ("LSTC_LICENSE", "ANSYSLI_SERVERS", "ANSYSLMD_LICENSE_FILE")
151+
)
152152

153153
if "stream" not in kwargs:
154154
stream = os.environ.get("PYDYNA_RUN_STREAM", None)

0 commit comments

Comments
 (0)