mirror of
https://github.com/ansible/awx.git
synced 2026-06-29 02:18:01 -02:30
Move 'become_enabled' to JobOptions to allow a toplevel field to exist
on the Job model also. Update tasks and migrations to reflect this
This commit is contained in:
@@ -637,7 +637,7 @@ class RunJob(BaseTask):
|
||||
if become_method and become_method == "su" and "become_password" in kwargs.get("passwords", {}):
|
||||
args.append("--ask-su-pass")
|
||||
else:
|
||||
if job.job_template.become_enabled:
|
||||
if job.become_enabled:
|
||||
args.append('--become')
|
||||
if become_method:
|
||||
args.extend(['--become-method', become_method])
|
||||
|
||||
Reference in New Issue
Block a user