Skip to content

Commit 8dad179

Browse files
authored
Merge pull request #602 from NVIDIA/am/rm4522633
Remove header when using sinfo
2 parents a588c92 + fd2b7ac commit 8dad179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cloudai/systems/slurm/slurm_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def update(self) -> None:
206206
self.update_nodes_state_and_user(self.group_allocated)
207207

208208
def nodes_from_sinfo(self) -> list[SlurmNode]:
209-
sinfo_output, _ = self.fetch_command_output("sinfo -o '%P|%t|%u|%N'")
209+
sinfo_output, _ = self.fetch_command_output("sinfo --noheader -o '%P|%t|%u|%N'")
210210
nodes: list[SlurmNode] = []
211211
for line in sinfo_output.split("\n"):
212212
if not line.strip():

0 commit comments

Comments
 (0)