Skip to content

Commit 06a4aec

Browse files
authored
Merge pull request #1101 from ansible-collections/bugfix/undefined-var-job-submit
[zos_job_submit] Fix undefined variable
2 parents cd3638f + f84389f commit 06a4aec

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
trivial:
2+
- zos_job_submit - Fix undefined variable that got deleted during a conflicting merge.
3+
(https://github.com/ansible-collections/ibm_zos_core/pull/1101).

plugins/action/zos_job_submit.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ def run(self, tmp=None, task_vars=None):
5757
source = self._task.args.get("src", None)
5858

5959
# Get a temporary file on the managed node
60-
dest_path = self._execute_module(
60+
tempfile = self._execute_module(
6161
module_name="tempfile", module_args={}, task_vars=task_vars,
62-
).get("path")
62+
)
63+
dest_path = tempfile.get("path")
6364
# Calling execute_module from this step with tempfile leaves behind a tmpdir.
6465
# This is called to ensure the proper removal.
6566
tmpdir = self._connection._shell.tmpdir

0 commit comments

Comments
 (0)