From 248942e2faf8364890bef041496eb98b4eec4a88 Mon Sep 17 00:00:00 2001 From: Liz Rice Date: Thu, 11 Apr 2019 18:28:08 +0100 Subject: [PATCH] No need to load config just to check if components are running. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This also allows for there to be no master.yaml file, for environments where such a thing doesn’t need to exist --- cmd/common.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/common.go b/cmd/common.go index 2d6463c..ed6e9b5 100644 --- a/cmd/common.go +++ b/cmd/common.go @@ -199,7 +199,6 @@ func loadConfig(nodetype check.NodeType) string { // isMaster verify if master components are running on the node. func isMaster() bool { - _ = loadConfig(check.MASTER) glog.V(2).Info("Checking if the current node is running master components") masterConf := viper.Sub(string(check.MASTER)) components, err := getBinaries(masterConf)