Change search location for job private data (#11217)

This commit is contained in:
Alan Rominger 2021-10-07 20:33:57 -04:00 committed by GitHub
parent 160858b051
commit ed8498f43f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -83,4 +83,5 @@ LOGGER_BLOCKLIST = (
RECEPTOR_PENDING = 'ansible-runner-???'
# 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_'

View File

@ -139,7 +139,7 @@ class UnifiedJob(HasStatus, base.Base):
"""
self.get()
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:]):
if arg1 == '-v':
if ':' in arg2: