Skip to content

Commit b61d2eb

Browse files
committed
Fix etcd config.json template
Currently, if etcd TLS is not enabled but copying CA into containers is enabled, the etcd.json.j2 will produce json file with trailing comma problem. Fixing this by wrapping comma with if condition. Closes-bug: #2119643 Change-Id: I869b3cc2c35afe20cd7c6fd42ff4053e7d51cd32 Signed-off-by: Seunghun Lee <[email protected]> (cherry picked from commit d2fb825)
1 parent 5001cab commit b61d2eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansible/roles/etcd/templates/etcd.json.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dest": "/etc/etcd/certs/etcd-key.pem",
1414
"owner": "etcd",
1515
"perm": "0600"
16-
}{% endif %}{% if etcd_copy_certs | bool %},
16+
}{% endif %}{% if etcd_enable_tls | bool and etcd_copy_certs | bool %},{% endif %}{% if etcd_copy_certs | bool %}
1717
{
1818
"source": "{{ container_config_directory }}/ca-certificates",
1919
"dest": "/var/lib/kolla/share/ca-certificates",

0 commit comments

Comments
 (0)