Migrate ad-hoc feature to use the new ansible become method if provided

This commit is contained in:
Matthew Jones
2015-04-03 15:17:52 -04:00
parent b6e9382273
commit 2e58f5fd00
7 changed files with 628 additions and 20 deletions

View File

@@ -1500,7 +1500,7 @@ class AdHocCommandSerializer(UnifiedJobSerializer):
model = AdHocCommand
fields = ('*', 'job_type', 'inventory', 'limit', 'credential',
'module_name', 'module_args', 'forks', 'verbosity',
'privilege_escalation')
'become_enabled')
exclude = ('unified_job_template', 'description')
def get_related(self, obj):