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
No related branches found
No related tags found
No related merge requests found
Pipeline #210963 failed
...@@ -39,7 +39,7 @@ def get_system_infos( ...@@ -39,7 +39,7 @@ def get_system_infos(
3. Remove systems in maintenance 3. Remove systems in maintenance
4. Create and return dicts of lists for system, account, project, partition, reservation 4. Create and return dicts of lists for system, account, project, partition, reservation
""" """
s = "^([^\,]+),([^\,]+),([^\,]+),([^\,]+)" s = "^([^\,]+),([^\,]+),([^\,]+),([^\,]+).*"
c = re.compile(s) c = re.compile(s)
def regroup(x): def regroup(x):
...@@ -948,7 +948,7 @@ class CustomGenericOAuthenticator(GenericOAuthenticator): ...@@ -948,7 +948,7 @@ class CustomGenericOAuthenticator(GenericOAuthenticator):
hpc_list = ["".join(hpc_list)] hpc_list = ["".join(hpc_list)]
for entry in hpc_list: for entry in hpc_list:
try: try:
partition = re.search("[^,]+,([^,]+),[^,]+,[^,]+", entry).groups()[0] partition = re.search("[^,]+,([^,]+),[^,]+,[^,]+.*", entry).groups()[0]
except: except:
authenticator.log.info( authenticator.log.info(
f"----- {authentication['name']} - Failed to check for defaults partitions: {entry} ---- {hpc_list}" 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 register or to comment