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:
Chris Church
2013-06-17 19:48:09 -04:00
parent 0dbb737f20
commit c9da8294df
2 changed files with 10 additions and 2 deletions

View File

@@ -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: