From a8ef3031f4f71e6d71451e42127ca6d670bd5c92 Mon Sep 17 00:00:00 2001 From: Tom Morrell Date: Fri, 25 Oct 2024 14:22:21 -0700 Subject: [PATCH] Fix bug where server name wasn't used --- iga/invenio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iga/invenio.py b/iga/invenio.py index 7cd2518..dc91abf 100644 --- a/iga/invenio.py +++ b/iga/invenio.py @@ -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