mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Make sure we shoehorn start args to empty string
This commit is contained in:
parent
46c7a8f433
commit
7e5ac7b3fa
@ -534,9 +534,9 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
|
||||
try:
|
||||
start_args = json.loads(decrypt_field(self, 'start_args'))
|
||||
except Exception, e:
|
||||
start_args = None
|
||||
start_args = ''
|
||||
if start_args in (None, ''):
|
||||
start_args = kwargs
|
||||
start_args = ''
|
||||
opts = dict([(field, start_args.get(field, '')) for field in needed])
|
||||
if not all(opts.values()):
|
||||
missing_fields = ', '.join([k for k,v in opts.items() if not v])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user