Skip to content

Commit 466ced6

Browse files
committed
api fix
1 parent f89fc64 commit 466ced6

File tree

1 file changed

+1
-1
lines changed
  • src/ansibleguy-webui/aw/api_endpoints

1 file changed

+1
-1
lines changed

src/ansibleguy-webui/aw/api_endpoints/job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def validate(self, attrs: dict):
3737
validate_no_xss(value=attrs[field], field=field)
3838

3939
for prompt_field in ['execution_prompts_required', 'execution_prompts_optional']:
40-
if is_set(attrs[prompt_field]):
40+
if prompt_field in attrs and is_set(attrs[prompt_field]):
4141
if regex_match(Job.execution_prompts_regex, attrs[prompt_field]) is None:
4242
raise ValidationError('Invalid execution prompt pattern')
4343

0 commit comments

Comments
 (0)