diff --git a/.vscode/settings.json b/.vscode/settings.json index ae74d707..5432f1ee 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,9 +6,8 @@ "editor.codeActionsOnSave": { "source.organizeImports": true } - } - }, - "python.testing.pytestArgs": ["tests"], - "python.testing.unittestEnabled": false, - "python.testing.pytestEnabled": true + }, + "python.testing.pytestArgs": ["tests"], + "python.testing.unittestEnabled": false, + "python.testing.pytestEnabled": true } diff --git a/CHANGELOG.md b/CHANGELOG.md index 6360d1d4..650cc345 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,8 +6,9 @@ All notable changes to the Zowe Client Python SDK will be documented in this fil ### Bug Fixes -- Fixed 'create_data_set' to accept "FBA", "FBM", "VBA", "VBM" as valid recfm [#240](https://github.com/zowe/zowe-client-python-sdk/issues/240) -- Return response instead of raw from streamed requests +- Fixed `create_data_set` to accept "FBA", "FBM", "VBA", "VBM" as valid recfm [#240](https://github.com/zowe/zowe-client-python-sdk/issues/240) +- Fixed an issue with `list_jobs` user correlator parameter [#242](https://github.com/zowe/zowe-client-python-sdk/issues/242) +- Return response instead of raw from streamed requests [#245](https://github.com/zowe/zowe-client-python-sdk/pull/245) ## `1.0.0-dev12` diff --git a/src/zos_jobs/zowe/zos_jobs_for_zowe_sdk/jobs.py b/src/zos_jobs/zowe/zos_jobs_for_zowe_sdk/jobs.py index c5a2d5dc..f3f21510 100644 --- a/src/zos_jobs/zowe/zos_jobs_for_zowe_sdk/jobs.py +++ b/src/zos_jobs/zowe/zos_jobs_for_zowe_sdk/jobs.py @@ -217,7 +217,8 @@ def list_jobs(self, owner=None, prefix="*", max_jobs=1000, user_correlator=None) """ custom_args = self._create_custom_request_arguments() params = {"prefix": prefix, "max-jobs": max_jobs} - params["owner"] = owner if owner else self.session.user + if owner: + params["owner"] = owner if user_correlator: params["user-correlator"] = user_correlator custom_args["params"] = params