Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 4.0.2
current_version = 4.0.3
commit = False
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<dev>\d+))?
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:

steps:
- name: Checkout ${{ matrix.package }} project
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

Expand Down
2 changes: 1 addition & 1 deletion common/src/main/python/dlpx/virtualization/common/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.2
4.0.3
2 changes: 1 addition & 1 deletion dvp/src/main/python/dlpx/virtualization/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.2
4.0.3
2 changes: 1 addition & 1 deletion libs/src/main/python/dlpx/virtualization/libs/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.2
4.0.3
12 changes: 11 additions & 1 deletion libs/src/main/python/dlpx/virtualization/libs/libs.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,17 @@ def retrieve_credentials(credentials_supplier):
response = internal_libs.retrieve_credentials(credentials_request)
response_to_str(response)
credentials_result = _handle_response(response)
if credentials_result.password != "":
#
# As protobuf definition of credentials_result object has all the
# attributes private_key, public_key and password irrespective of
# whether it is a keypair or a password credential type, we consider the
# object to be password credential type if private_key and public_key is
# not set.
#
if (
not credentials_result.key_pair.private_key and
not credentials_result.key_pair.public_key
):
return PasswordCredentials(
credentials_result.username, credentials_result.password)
return KeyPairCredentials(
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.2
4.0.3
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.2
4.0.3
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class TestPackageUtil:
@staticmethod
def test_get_version():
assert package_util.get_version() == '4.0.2'
assert package_util.get_version() == '4.0.3'

@staticmethod
def test_get_virtualization_api_version():
Expand Down