From b5e236e28dee3e9481a48c615be22d70df44a42c Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期二, 19 十一月 2019 15:25:49 +0800 Subject: [PATCH] add log --- controllers/es.go | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/es.go b/controllers/es.go index 5587110..8a1fa1d 100644 --- a/controllers/es.go +++ b/controllers/es.go @@ -412,7 +412,7 @@ if ip == hosts.OldIp { nodeType = tmpType } - if tmpType == "master" { + if tmpType == "涓昏妭鐐�" { newMasterHosts = append(newMasterHosts, ip) } if ip != hosts.OldIp { @@ -420,7 +420,7 @@ } } - if nodeType == "master" { + if nodeType == "涓昏妭鐐�" { str1 := "sed -ie 's/network.host: " + hosts.OldIp + "/network.host: " + hosts.NewIp + "/g' /opt/elasticsearch/config/elasticsearch.yml" msg1 := runScript(str1) if msg1 == "杩愯澶辫触" { -- Gitblit v1.8.0