diff --git a/prule/__init__.py b/prule/__init__.py
index ea2b6c79997fc612991f7a31f4c3214ca6ed01ad..09ad65b071cfe41b4d4551cffd6834053058655a 100644
--- a/prule/__init__.py
+++ b/prule/__init__.py
@@ -385,9 +385,15 @@ def parse_slurminfo(info: str) -> dict:
                 slurm["Reservation"] = l[15:].strip("\n")
             elif l.startswith("   Comment="):
                 slurm["Comment"] = l[11:].strip("\n")
+            elif l.startswith("   TresPerTask="):
+                slurm["TresPerTask"] = l[15:].strip("\n")
             else:
                 for t in l.strip().split(" "):
-                    k,v = t.split("=")
+                    v_ix = t.find("=")
+                    if t.find("=", v_ix+1) != -1:
+                        log.print_color(log.color.yellow, log.warn, "Unknown field during SLURM info parsing: {}".format(l))
+                    k = t[:v_ix]
+                    v = t[v_ix+1:]
                     slurm[k] = v
         elif l.startswith("JobId="): # first line
             # first line