From 404951fb8a8e49195ecdcaa16f42ff7183ee2c8b Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Fri, 14 May 2021 11:40:11 -0400 Subject: [PATCH] daemon: fix confd ceph template The extra spaces before the mon.xxx section aren't needed and generate a config file error starting the Octopus release. global_init: error reading config file. parse error: expected '' in line 12 at position 1 Closes: #1751 Signed-off-by: Dimitri Savineau (cherry picked from commit 4138a4f2ff814bda0c1839a71ec858821ec9b809) --- src/daemon/confd/templates/ceph.conf.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/daemon/confd/templates/ceph.conf.tmpl b/src/daemon/confd/templates/ceph.conf.tmpl index 225d9d312..d6a94eb02 100644 --- a/src/daemon/confd/templates/ceph.conf.tmpl +++ b/src/daemon/confd/templates/ceph.conf.tmpl @@ -9,9 +9,9 @@ {{range gets "/mon/*"}} {{base .Key}} = {{.Value}}{{end}} {{range gets "/mon_host/*"}} - [mon.{{base .Key}}] - host = {{base .Key}} - mon_addr = {{.Value}}{{end}} +[mon.{{base .Key}}] + host = {{base .Key}} + mon_addr = {{.Value}}{{end}} [osd] {{range gets "/osd/*"}}