Skip to content

Commit

Permalink
Use -1 as limit for listing projects
Browse files Browse the repository at this point in the history
  • Loading branch information
chandra-tacc committed Nov 6, 2023
1 parent a8232d6 commit 681aac7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,12 @@ def list_projects(client):

fields = "id,host,description,notes,updated,owner,rootDir"
query = f"id.like.{settings.PORTAL_PROJECTS_SYSTEM_PREFIX}.*"
# use limit as -1 to allow search to corelate with
# all projects available to the api user
listing = client.systems.getSystems(listType='ALL',
search=query,
select=fields)
select=fields,
limit=-1)

serialized_listing = map(lambda prj: {
"id": prj.id,
Expand Down

0 comments on commit 681aac7

Please sign in to comment.