From 4d0e5b1e9f59ebba7f875c9a39a6ab84c9dde4b6 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期二, 12 十一月 2019 20:24:24 +0800
Subject: [PATCH] update swagger

---
 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