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:
Matthew Jones
2015-04-06 12:34:47 -04:00
parent 736f86fc72
commit 55f266d323
6 changed files with 19 additions and 7 deletions

View File

@@ -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])