From a5b8de3ddec30ab670065e62a63144566c0d3556 Mon Sep 17 00:00:00 2001 From: pem70 Date: Mon, 1 Jul 2024 14:26:13 -0400 Subject: [PATCH 1/2] Fixes `_create_custom_request_arguments` Signed-off-by: pem70 --- CHANGELOG.md | 12 +++++++++++- src/core/zowe/core_for_zowe_sdk/sdk_api.py | 3 ++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5cef13d..c066a0e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,21 @@ All notable changes to the Zowe Client Python SDK will be documented in this file. +## Recent Changes + +### Enhancements + +- + +### Bug Fixes + +- Fixed a bug on `_create_custom_request_arguments` where changes on `custom_args` will stay after the function returns [#299](https://github.com/zowe/zowe-client-python-sdk/issues/299) + ## `1.0.0-dev16` ### Enhancements -- Rename Python SDK bundle [#286](https://github.com/zowe/zowe-client-python-sdk/issues/286) +- Renamed Python SDK bundle [#286](https://github.com/zowe/zowe-client-python-sdk/issues/286) - Added logger class to core SDK [#185](https://github.com/zowe/zowe-client-python-sdk/issues/185) - Added classes for handling `Datasets`, `USSFiles`, and `FileSystems` in favor of the single Files class. [#264](https://github.com/zowe/zowe-client-python-sdk/issues/264) - Refactored tests into proper folders and files and add more tests [#265](https://github.com/zowe/zowe-client-python-sdk/issues/265) diff --git a/src/core/zowe/core_for_zowe_sdk/sdk_api.py b/src/core/zowe/core_for_zowe_sdk/sdk_api.py index 2ac79555..2ca678b6 100644 --- a/src/core/zowe/core_for_zowe_sdk/sdk_api.py +++ b/src/core/zowe/core_for_zowe_sdk/sdk_api.py @@ -10,6 +10,7 @@ Copyright Contributors to the Zowe Project. """ +import copy import urllib from . import session_constants @@ -66,7 +67,7 @@ def _create_custom_request_arguments(self): This method is required because the way that Python handles dictionary creation """ - return self._request_arguments.copy() + return copy.deepcopy(self._request_arguments) def _encode_uri_component(self, str_to_adjust): """Adjust string to be correct in a URL From 7aa9c59fe04f5cee8833544a27420c977edc6b43 Mon Sep 17 00:00:00 2001 From: Timothy Johnson Date: Tue, 2 Jul 2024 09:52:32 -0400 Subject: [PATCH 2/2] Update CHANGELOG.md Co-authored-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> Signed-off-by: Timothy Johnson --- CHANGELOG.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c066a0e3..7778280e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,8 +6,6 @@ All notable changes to the Zowe Client Python SDK will be documented in this fil ### Enhancements -- - ### Bug Fixes - Fixed a bug on `_create_custom_request_arguments` where changes on `custom_args` will stay after the function returns [#299](https://github.com/zowe/zowe-client-python-sdk/issues/299)