Skip to content

Commit

Permalink
Fix bug where server name wasn't used
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorrell committed Oct 25, 2024
1 parent 8d7ce78 commit a8ef303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iga/invenio.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def invenio_token_valid(server_url):
# programs (and especially ones that run as GHAs) we don't want to get far
# into the work before discovering we won't be able to upload the result.
try:
return bool(_invenio('get', endpoint='/api/users?size=1',
return bool(_invenio('get', url=f'{server_url}/api/users?size=1',
msg='confirm InvenioRDM token is valid'))
except KeyboardInterrupt:
raise
Expand Down

0 comments on commit a8ef303

Please sign in to comment.