From aac7784159deff47eef5de8bacf2243e5f049032 Mon Sep 17 00:00:00 2001 From: JoshuaUrrutia Date: Tue, 11 Jul 2023 13:53:12 -0500 Subject: [PATCH] actors.get_client() remove trailing slash from base url --- tapipy/actors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tapipy/actors.py b/tapipy/actors.py index 44f7b7c..c87d8a6 100644 --- a/tapipy/actors.py +++ b/tapipy/actors.py @@ -20,7 +20,7 @@ def get_client(): """Returns a pre-authenticated Tapis client using the abaco environment variables.""" # if we have an access token, use that: if os.environ.get('_abaco_access_token'): - tp = tapis.Tapis(base_url=os.environ.get('_abaco_api_server'), + tp = tapis.Tapis(base_url=os.environ.get('_abaco_api_server').strip('/'), access_token=os.environ.get('_abaco_access_token')) else: raise errors.BaseTapyException("Unable to instantiate a Tapis client: no token found.")