mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 09:51:09 +03:00
Revert start_args when launching job
This commit is contained in:
parent
7e5ac7b3fa
commit
9e898953dd
@ -534,9 +534,9 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
|
|||||||
try:
|
try:
|
||||||
start_args = json.loads(decrypt_field(self, 'start_args'))
|
start_args = json.loads(decrypt_field(self, 'start_args'))
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
start_args = ''
|
start_args = None
|
||||||
if start_args in (None, ''):
|
if start_args in (None, ''):
|
||||||
start_args = ''
|
start_args = kwargs
|
||||||
opts = dict([(field, start_args.get(field, '')) for field in needed])
|
opts = dict([(field, start_args.get(field, '')) for field in needed])
|
||||||
if not all(opts.values()):
|
if not all(opts.values()):
|
||||||
missing_fields = ', '.join([k for k,v in opts.items() if not v])
|
missing_fields = ', '.join([k for k,v in opts.items() if not v])
|
||||||
|
Loading…
Reference in New Issue
Block a user