We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f89fc64 commit 466ced6Copy full SHA for 466ced6
src/ansibleguy-webui/aw/api_endpoints/job.py
@@ -37,7 +37,7 @@ def validate(self, attrs: dict):
37
validate_no_xss(value=attrs[field], field=field)
38
39
for prompt_field in ['execution_prompts_required', 'execution_prompts_optional']:
40
- if is_set(attrs[prompt_field]):
+ if prompt_field in attrs and is_set(attrs[prompt_field]):
41
if regex_match(Job.execution_prompts_regex, attrs[prompt_field]) is None:
42
raise ValidationError('Invalid execution prompt pattern')
43
0 commit comments