mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 18:21:03 -03:30
save state
This commit is contained in:
@@ -1709,7 +1709,7 @@ class JobLaunchSerializer(BaseSerializer):
|
|||||||
def to_native(self, obj):
|
def to_native(self, obj):
|
||||||
res = super(JobLaunchSerializer, self).to_native(obj)
|
res = super(JobLaunchSerializer, self).to_native(obj)
|
||||||
view = self.context.get('view', None)
|
view = self.context.get('view', None)
|
||||||
if hasattr(view, '_raw_data_form_marker'):
|
if obj and hasattr(view, '_raw_data_form_marker'):
|
||||||
if obj.passwords_needed_to_start:
|
if obj.passwords_needed_to_start:
|
||||||
password_keys = dict([(p, u'') for p in obj.passwords_needed_to_start])
|
password_keys = dict([(p, u'') for p in obj.passwords_needed_to_start])
|
||||||
res.update(dict(extra_vars=password_keys))
|
res.update(dict(extra_vars=password_keys))
|
||||||
|
|||||||
Reference in New Issue
Block a user