From 48f7b277a9f2a91c5f7951786d1555e12e324a21 Mon Sep 17 00:00:00 2001 From: Ella Carbone Date: Tue, 23 Jun 2026 09:43:38 -0400 Subject: [PATCH] construct allocations ordering changed to take more flexible format first. --- src/pyipcs/subcmd/subcmd_shell.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pyipcs/subcmd/subcmd_shell.py b/src/pyipcs/subcmd/subcmd_shell.py index 109cd97..bbdc23c 100644 --- a/src/pyipcs/subcmd/subcmd_shell.py +++ b/src/pyipcs/subcmd/subcmd_shell.py @@ -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