Skip to content

Commit 776d5d8

Browse files
committed
Conditional include of options/meta in client
1 parent 56afcef commit 776d5d8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,3 +240,7 @@
240240

241241
- Clean up docker tasks
242242
- Fix debian init and client only config (thanks @groggemans)
243+
244+
## v1.7.2 (UNRELEASED)
245+
246+
- Conditionally include options and meta to avoid error when emtpy

templates/client.hcl.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ client {
2727
reserved_ports = "{{ nomad_reserved['ports'] }}"
2828
}
2929

30+
{% if nomad_options -%}
3031
options = {
3132
{% for key, value in nomad_options.iteritems() %}
3233
"{{ key }}" = "{{ value }}"
@@ -38,4 +39,5 @@ client {
3839
"{{ key }}" = "{{ value }}"
3940
{% endfor -%}
4041
}
42+
{% endif %}
4143
}

0 commit comments

Comments
 (0)