Skip to content

Commit

Permalink
More test fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
enolfc committed Jan 3, 2024
1 parent 7aa66f5 commit fa3ac4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cloud-info/cloud_info_catchall/share_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ def get_project_vos(self, project):
f"Discarding project {project['name']} as it is not enabled"
)
return []
vo = project.get("egi.VO", "")
vo = project.get("egi.VO", None)
if not vo:
vo = project.get("VO", "")
vo = project.get("VO", None)
if not vo:
logging.warning(
f"Discarding project {project['name']} as it does not have VO property"
)
return []
return vo.split(",")

def get_token_shares(self):
Expand Down

0 comments on commit fa3ac4b

Please sign in to comment.