From 73a20fe26b65bb772c6b53b5ea34544758ca84eb Mon Sep 17 00:00:00 2001 From: George Feinberg <39782661+gmfeinberg@users.noreply.github.com> Date: Tue, 19 Apr 2022 15:40:24 -0400 Subject: [PATCH] Fix iam and config issues, prepare for 5.3.3 release --- CHANGELOG.rst | 2 +- src/borneo/config.py | 2 +- src/borneo/iam/iam.py | 5 ++--- src/borneo/version.py | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 49bf4dd..2861e28 100755 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on `Keep a Changelog `_. ==================== - 5.3.2 - 2022-04-15 + 5.3.3 - 2022-04-19 ==================== Fixed diff --git a/src/borneo/config.py b/src/borneo/config.py index c64fa4a..1cd340a 100644 --- a/src/borneo/config.py +++ b/src/borneo/config.py @@ -647,7 +647,7 @@ class NoSQLHandleConfig(object): def __init__(self, endpoint=None, provider=None): # Inits a NoSQLHandleConfig object. - endpoint_str = None + endpoint_str = endpoint if endpoint is not None: if not isinstance(endpoint, (str, Region)): raise IllegalArgumentException( diff --git a/src/borneo/iam/iam.py b/src/borneo/iam/iam.py index c89fc1f..7e3869d 100644 --- a/src/borneo/iam/iam.py +++ b/src/borneo/iam/iam.py @@ -142,8 +142,7 @@ def __init__(self, provider=None, config_file=None, profile_name=None, if provider is not None: if not isinstance( provider, - (Signer, - auth.signers.SecurityTokenSigner)): + (Signer, SecurityTokenSigner)): raise IllegalArgumentException( 'provider should be an instance of oci.signer.Signer or ' + 'oci.auth.signers.SecurityTokenSigner.') @@ -429,7 +428,7 @@ def _refresh_task(self): error_logged = True # check for timeout in the loop - if (int(round(time() * 1000)) - start_time >= timeout): + if (int(round(time() * 1000)) - start_ms >= timeout): self._logutils.log_error( 'Request signature refresh timed out after ' + str(timeout)) break diff --git a/src/borneo/version.py b/src/borneo/version.py index 1b98273..80a2a82 100644 --- a/src/borneo/version.py +++ b/src/borneo/version.py @@ -5,4 +5,4 @@ # https://oss.oracle.com/licenses/upl/ # -__version__ = '5.3.2' +__version__ = '5.3.3'