mirror of
https://github.com/ansible/awx.git
synced 2026-03-27 22:05:07 -02:30
Fix to only specify sudo user if explicitly given by the credentials, so as not to force the playbook to require sudo privileges to run.
This commit is contained in:
@@ -192,6 +192,7 @@ class RunJobTest(BaseCeleryTest):
|
||||
def check_job_result(self, job, expected='successful', expect_stdout=True,
|
||||
expect_traceback=False):
|
||||
msg = 'job status is %s, expected %s' % (job.status, expected)
|
||||
msg = '%s\nargs:\n%s' % (msg, job.job_args)
|
||||
if job.result_traceback:
|
||||
msg = '%s\ngot traceback:\n%s' % (msg, job.result_traceback)
|
||||
if job.result_stdout:
|
||||
|
||||
Reference in New Issue
Block a user