Skip to content

Commit 8a50bdf

Browse files
authored
Remove redundant default and fix typo (#233)
I removed the `else` that could never be used and fixed a typo. fixes #232
1 parent 560fa44 commit 8a50bdf

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

roles/elasticsearch/templates/jvm.options.j2

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,8 @@
1818

1919
# Xms represents the initial size of total heap space
2020
# Xmx represents the maximum size of total heap space
21-
{% if elasticsearch_heap is defined %}
22-
-Xms{{ elasticsearch_heap }}
23-
-Xmx{{ elasticsearch_heap }}
24-
{% else %}
25-
-Xms2g
26-
-Xmx2g
27-
{% endif %}
21+
-Xms{{ elasticsearch_heap }}g
22+
-Xmx{{ elasticsearch_heap }}g
2823

2924
{% if elasticstack_release is version('8', '>=') %}
3025
################################################################

0 commit comments

Comments
 (0)