mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
Explain where project file needs to be if it is not present.
This commit is contained in:
parent
ab6fca64a0
commit
d1a2b49435
@ -200,9 +200,10 @@ class RunJob(Task):
|
||||
kwargs['passwords'] = self.build_passwords(job, **kwargs)
|
||||
args = self.build_args(job, **kwargs)
|
||||
cwd = job.project.get_project_path()
|
||||
root = settings.PROJECTS_ROOT
|
||||
if not cwd:
|
||||
raise RuntimeError('project local_path %s cannot be found' %
|
||||
job.project.local_path)
|
||||
raise RuntimeError('project local_path %s cannot be found in %s' %
|
||||
(job.project.local_path, root))
|
||||
env = self.build_env(job, **kwargs)
|
||||
job = self.update_job(job_pk, job_args=args, job_cwd=cwd,
|
||||
job_env=env)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user