mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
yet another extra_vars fix
This commit is contained in:
parent
2830095b07
commit
cea9dbdb4f
@ -1801,6 +1801,9 @@ class JobLaunchSerializer(BaseSerializer):
|
||||
except (yaml.YAMLError, TypeError, AttributeError):
|
||||
raise serializers.ValidationError(dict(extra_vars=['Must be valid JSON or YAML']))
|
||||
|
||||
if not isinstance(extra_vars, dict):
|
||||
extra_vars = {}
|
||||
|
||||
if self.get_survey_enabled(obj):
|
||||
validation_errors = obj.survey_variable_validation(extra_vars)
|
||||
if validation_errors:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user