Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/pyipcs/subcmd/subcmd_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,15 @@ def construct_allocations(session: IpcsSession) -> dict[str, str | list[str]]:
allocations_copy["IPCSEXEC"] = [session._ipcsexec_dsname]
allocations_copy["SYSEXEC"] = [session._sysexec_dsname]

# Add in SYSEXEC from user allocations
# Add in SYSEXEC from user allocations, first datasets set the concatenation format
if "SYSEXEC" in session.aloc.get():
allocations_sysexec = copy.deepcopy(session.aloc.get()["SYSEXEC"])
if isinstance(allocations_sysexec, str):
allocations_copy["SYSEXEC"].append(allocations_sysexec)
allocations_copy["SYSEXEC"] = [allocations_sysexec, session._sysexec_dsname]
else:
allocations_copy["SYSEXEC"].extend(allocations_sysexec)
allocations_copy["SYSEXEC"] = allocations_sysexec + [session._sysexec_dsname]
else:
allocations_copy["SYSEXEC"] = [session._sysexec_dsname]

return allocations_copy

Expand Down