Skip to content
Snippets Groups Projects
Commit aee35ca6 authored by Tim Kreuzer's avatar Tim Kreuzer
Browse files

update regex to use newest dispatch hpc infos

parent f58e8aeb
Branches
No related tags found
No related merge requests found
Pipeline #210963 failed
......@@ -39,7 +39,7 @@ def get_system_infos(
3. Remove systems in maintenance
4. Create and return dicts of lists for system, account, project, partition, reservation
"""
s = "^([^\,]+),([^\,]+),([^\,]+),([^\,]+)"
s = "^([^\,]+),([^\,]+),([^\,]+),([^\,]+).*"
c = re.compile(s)
def regroup(x):
......@@ -948,7 +948,7 @@ class CustomGenericOAuthenticator(GenericOAuthenticator):
hpc_list = ["".join(hpc_list)]
for entry in hpc_list:
try:
partition = re.search("[^,]+,([^,]+),[^,]+,[^,]+", entry).groups()[0]
partition = re.search("[^,]+,([^,]+),[^,]+,[^,]+.*", entry).groups()[0]
except:
authenticator.log.info(
f"----- {authentication['name']} - Failed to check for defaults partitions: {entry} ---- {hpc_list}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment