From 52bd382203ebdcce84c93f01a2806e16b5416dc5 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期一, 23 九月 2019 14:06:49 +0800 Subject: [PATCH] verify dbt tableName exist when add --- controllers/taglist.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/controllers/taglist.go b/controllers/taglist.go index beb54e6..cd863a3 100644 --- a/controllers/taglist.go +++ b/controllers/taglist.go @@ -54,7 +54,7 @@ func GetTotalFromDb(id string) (flag bool) { flag = false localConf, err2 := cache.GetServerInfo() - if err2 !=nil || localConf.AlarmIp == "" { + if err2 !=nil || localConf.AlarmIp == "" || localConf.ServerId == "" { logger.Debug("localConfig is wrong!!!") return false } -- Gitblit v1.8.0