From ce928fcad11281900958693974061134ad5e3304 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Fri, 18 Jul 2025 00:40:59 +0200 Subject: [PATCH] fup --- components/node/files/conf/sentinel.conf.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/node/files/conf/sentinel.conf.tpl b/components/node/files/conf/sentinel.conf.tpl index 8555f38..113114e 100644 --- a/components/node/files/conf/sentinel.conf.tpl +++ b/components/node/files/conf/sentinel.conf.tpl @@ -38,12 +38,12 @@ sentinel leader-epoch {{ $master_name }} 0 sentinel current-epoch 0 {{- range $i, $e := until ( int $replicas ) }} - {{- $masterName := $master_name}} + {{- $masterName := printf "%s" $master_name}} {{- $ndeHostname := printf "%s-%d" $name $i }} {{- $ndeFQDN := printf "%s.%s" $ndeHostname $domain }} {{- $nodeID := sha1sum $ndeHostname }} {{- if (ne $fqdn $ndeFQDN) }} -sentinel {{ printf "known-sentinel $masterName %s %s %s" $ndeFQDN $sentinel_port $nodeID }} -sentinel {{ printf "known-replica $masterName %s %s" $ndeFQDN $port }} +sentinel {{ printf "known-sentinel %s %s %s %s" $masterName $ndeFQDN $sentinel_port $nodeID }} +sentinel {{ printf "known-replica %s %s %s" $masterName $ndeFQDN $port }} {{- end}} {{- end}} \ No newline at end of file