Skip to content
Snippets Groups Projects
Commit edf355df authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

fix use of serviceaccounts api

parent 39b0370f
No related branches found
No related tags found
No related merge requests found
......@@ -150,7 +150,7 @@ def get_or_create_service_account(request: AdminRequest, org_id):
# get provision service account, if it exists
try:
service_accounts = request.get('api/serviceaccounts?perpage=10&page=1&query=provision').json()
service_accounts = request.get('api/serviceaccounts/search?query=provision').json()
if service_accounts and service_accounts.get('totalCount') > 0:
service_account = service_accounts.get('serviceAccounts')[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment