diff --git a/PBS_Utils/pbs_library.py b/PBS_Utils/pbs_library.py index 2ae7d054e93dfe9a470a532dfee3f86924cbede8..138b99bbfea63d5897dd67d847ef3bec4a50e3f8 100644 --- a/PBS_Utils/pbs_library.py +++ b/PBS_Utils/pbs_library.py @@ -639,7 +639,12 @@ def process_standard_bstat_head(bstat_head, pbs_ifl): key = attrl.name resource = attrl.resource value = attrl.value - if not resource: + # fix for max_run server and queue limits, "list" + if value.startswith('[') and value.endswith(']'): + if key not in dct: + dct[key] = list() + dct[key].append(value) + elif not resource: if key in dct: raise Exception(f"key:{key} is already set and resource didn't exist on the previous loop.") dct[key] = value