diff --git a/src/ansibleguy-webui/aw/templatetags/form_util.py b/src/ansibleguy-webui/aw/templatetags/form_util.py index 52058be..718b9c6 100644 --- a/src/ansibleguy-webui/aw/templatetags/form_util.py +++ b/src/ansibleguy-webui/aw/templatetags/form_util.py @@ -177,7 +177,7 @@ def get_form_field_input(bf: BoundField, existing: dict) -> str: @register.filter def check_job_prompt_flag(existing: dict, flag: str) -> bool: - if 'execution_prompts' not in existing: + if 'execution_prompts' not in existing or not isinstance(existing['execution_prompts'], str): return PROMPT_FLAG_DEFAULTS[flag] return flag in existing['execution_prompts'].split(Job.execution_prompt_separator)