Skip to content

Commit a2bc2d1

Browse files
alongdclaude
andcommitted
ssh: don't KeyError in list_available_nodes on PBS
cluster_soft is lowercased but the command dict is keyed by original case, and PBS node-listing is unimplemented; return empty early like htcondor. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 9a1ace4 commit a2bc2d1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

arc/job/ssh.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,10 @@ def list_available_nodes(self) -> list:
448448
list: lines of the node hostnames.
449449
"""
450450
cluster_soft = servers[self.server]['cluster_soft'].lower()
451-
if cluster_soft == 'htcondor':
451+
if cluster_soft in ['htcondor', 'pbs']:
452+
# Node listing is not implemented for these schedulers; return empty.
452453
return list()
453-
cmd = list_available_nodes_command[cluster_soft]
454+
cmd = list_available_nodes_command[servers[self.server]['cluster_soft']]
454455
stdout = self._send_command_to_server(command=cmd)[0]
455456
nodes = list()
456457
if cluster_soft.lower() in ['oge', 'sge']:

0 commit comments

Comments
 (0)