From 6e31c7b1f4083aef382750fbc7c4d39fcd53c532 Mon Sep 17 00:00:00 2001 From: delinea-sagar Date: Thu, 30 Nov 2023 02:15:19 -0500 Subject: [PATCH] Fixed bug related to base_url trailing slash --- delinea/__init__.py | 2 +- delinea/secrets/server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/delinea/__init__.py b/delinea/__init__.py index cb9a267..284d0d8 100644 --- a/delinea/__init__.py +++ b/delinea/__init__.py @@ -1,3 +1,3 @@ """The Delinea Secret Server Python SDK""" -__version__ = "1.2.2" +__version__ = "1.2.3" diff --git a/delinea/secrets/server.py b/delinea/secrets/server.py index 256ca22..855f2fa 100644 --- a/delinea/secrets/server.py +++ b/delinea/secrets/server.py @@ -282,7 +282,7 @@ def __init__( self.base_url = base_url.rstrip("/") self.authorizer = authorizer - self.api_url = f"{base_url}/{api_path_uri.strip('/')}" + self.api_url = f"{self.base_url}/{api_path_uri.strip('/')}" def get_secret_json(self, id, query_params=None): """Gets a Secret from Secret Server