Skip to content

Commit

Permalink
fix: remove default values duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
MonolithProjects committed May 10, 2024
1 parent 000fd64 commit 7b206d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/etc/haproxy/haproxy-default.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ defaults
unique-id-format {{ haproxy_default_unique_id_format }}
{% endif %}
{% if haproxy_default_load_server_state_from_file is defined and haproxy_default_load_server_state_from_file|length %}
load-server-state-from-file {{ haproxy_default_load_server_state_from_file | default('global') }}
load-server-state-from-file {{ haproxy_default_load_server_state_from_file }}
{% endif %}
2 changes: 1 addition & 1 deletion templates/etc/haproxy/haproxy-global.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ global
{% endfor %}
{% endif %}
{% if haproxy_global_server_state_base is defined %}
server-state-base {{ haproxy_global_server_state_base | default('current') }}
server-state-base {{ haproxy_global_server_state_base }}
{% endif %}

0 comments on commit 7b206d0

Please sign in to comment.