Skip to content

Commit

Permalink
Merge pull request #302 from zowe/Fix-requests-arguments
Browse files Browse the repository at this point in the history
Fixes `_create_custom_request_arguments`
  • Loading branch information
t1m0thyj authored Jul 2, 2024
2 parents be7b36a + 7aa9c59 commit fbe561d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,19 @@

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)
Expand Down
3 changes: 2 additions & 1 deletion src/core/zowe/core_for_zowe_sdk/sdk_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Copyright Contributors to the Zowe Project.
"""

import copy
import urllib

from . import session_constants
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fbe561d

Please sign in to comment.