Expose Scriptorium imports and transient retry settings
This commit is contained in:
@@ -1,6 +1,23 @@
|
||||
{% if scriptorium_prompt_dir is none and scriptorium_profile_dir is none and scriptorium_schema_dir is none and scriptorium_server_addr is none and scriptorium_server_artifact_root is none and scriptorium_server_max_request_bytes is none and scriptorium_server_max_artifact_bytes is none and scriptorium_server_max_response_bytes is none and scriptorium_defaults_render_format is none and scriptorium_backends is none %}
|
||||
{% if (
|
||||
scriptorium_configkit_imports is none
|
||||
and scriptorium_prompt_dir is none
|
||||
and scriptorium_profile_dir is none
|
||||
and scriptorium_schema_dir is none
|
||||
and scriptorium_server_addr is none
|
||||
and scriptorium_server_artifact_root is none
|
||||
and scriptorium_server_max_request_bytes is none
|
||||
and scriptorium_server_max_artifact_bytes is none
|
||||
and scriptorium_server_max_response_bytes is none
|
||||
and scriptorium_defaults_render_format is none
|
||||
and scriptorium_backends is none
|
||||
and scriptorium_transient_retries is none
|
||||
) %}
|
||||
{}
|
||||
{% else %}
|
||||
{% if scriptorium_configkit_imports is not none %}
|
||||
configkit:
|
||||
imports: {{ scriptorium_configkit_imports | to_json }}
|
||||
{% endif %}
|
||||
{% if scriptorium_prompt_dir is not none %}
|
||||
prompt_dir: {{ scriptorium_prompt_dir | to_json }}
|
||||
{% endif %}
|
||||
@@ -35,4 +52,7 @@ defaults:
|
||||
{% if scriptorium_backends is not none %}
|
||||
backends: {{ scriptorium_backends | to_json }}
|
||||
{% endif %}
|
||||
{% if scriptorium_transient_retries is not none %}
|
||||
transient_retries: {{ scriptorium_transient_retries | to_json }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user