mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 08:48:46 -03:30
Change search location for job private data (#11217)
This commit is contained in:
@@ -83,4 +83,5 @@ LOGGER_BLOCKLIST = (
|
|||||||
RECEPTOR_PENDING = 'ansible-runner-???'
|
RECEPTOR_PENDING = 'ansible-runner-???'
|
||||||
|
|
||||||
# Naming pattern for AWX jobs in /tmp folder, like /tmp/awx_42_xiwm
|
# Naming pattern for AWX jobs in /tmp folder, like /tmp/awx_42_xiwm
|
||||||
|
# also update awxkit.api.pages.unified_jobs if changed
|
||||||
JOB_FOLDER_PREFIX = 'awx_%s_'
|
JOB_FOLDER_PREFIX = 'awx_%s_'
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ class UnifiedJob(HasStatus, base.Base):
|
|||||||
"""
|
"""
|
||||||
self.get()
|
self.get()
|
||||||
job_args = self.job_args
|
job_args = self.job_args
|
||||||
expected_prefix = '/tmp/pdd_wrapper_{}'.format(self.id)
|
expected_prefix = '/tmp/awx_{}'.format(self.id)
|
||||||
for arg1, arg2 in zip(job_args[:-1], job_args[1:]):
|
for arg1, arg2 in zip(job_args[:-1], job_args[1:]):
|
||||||
if arg1 == '-v':
|
if arg1 == '-v':
|
||||||
if ':' in arg2:
|
if ':' in arg2:
|
||||||
|
|||||||
Reference in New Issue
Block a user