From 6004bb323dbf982bdbc3da7f2d7b264b7c1ef5fb Mon Sep 17 00:00:00 2001 From: samadpls Date: Tue, 26 Dec 2023 21:56:04 +0500 Subject: [PATCH 1/4] Fixed an issue with `list_jobs` user correlator parameter Signed-off-by: samadpls --- src/zos_jobs/zowe/zos_jobs_for_zowe_sdk/jobs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 From 8a6ee865cfd8b032e1c6625efa2775bbc361c847 Mon Sep 17 00:00:00 2001 From: samadpls Date: Tue, 26 Dec 2023 21:56:26 +0500 Subject: [PATCH 2/4] Fixed an issue with `list_jobs` user correlator parameter Signed-off-by: samadpls --- CHANGELOG.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 541392bf..d826d794 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +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) +- 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) + ## `1.0.0-dev12` From 843976f77b1675f66c3401626a3e8d8dc072d8b9 Mon Sep 17 00:00:00 2001 From: samadpls Date: Tue, 26 Dec 2023 21:59:12 +0500 Subject: [PATCH 3/4] fixed typo Signed-off-by: samadpls --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d826d794..e22157f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,6 @@ All notable changes to the Zowe Client Python SDK will be documented in this fil - 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) - ## `1.0.0-dev12` ### Bug Fixes From 7eadcdba1ca5094efd7654eab8ec83389ff76b44 Mon Sep 17 00:00:00 2001 From: samadpls Date: Tue, 26 Dec 2023 22:57:34 +0500 Subject: [PATCH 4/4] fixed the bracket in `.vscode/settings.json` Signed-off-by: samadpls --- .vscode/settings.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 }