Skip to content

Commit

Permalink
Fixed an issue with list_jobs user correlator parameter
Browse files Browse the repository at this point in the history
Signed-off-by: samadpls <[email protected]>
  • Loading branch information
samadpls committed Dec 26, 2023
1 parent 8c9580a commit 6004bb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/zos_jobs/zowe/zos_jobs_for_zowe_sdk/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6004bb3

Please sign in to comment.