From 9f0e05043f89b01302515a561d07d8abf0453362 Mon Sep 17 00:00:00 2001 From: aldbr Date: Wed, 7 Jan 2026 11:44:23 +0100 Subject: [PATCH] fix: SLURM getCEStatus last empty line --- src/DIRAC/Resources/Computing/BatchSystems/SLURM.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DIRAC/Resources/Computing/BatchSystems/SLURM.py b/src/DIRAC/Resources/Computing/BatchSystems/SLURM.py index b66ce035069..7016f2f63ae 100644 --- a/src/DIRAC/Resources/Computing/BatchSystems/SLURM.py +++ b/src/DIRAC/Resources/Computing/BatchSystems/SLURM.py @@ -300,7 +300,7 @@ def getCEStatus(self, **kwargs): waitingJobs = 0 runningJobs = 0 - lines = output.split("\n") + lines = output.strip().split("\n") for line in lines[1:]: _jid, status = line.split() if status in ["PENDING", "SUSPENDED", "CONFIGURING"]: