No need to load config just to check if components are running.

This also allows for there to be no master.yaml file, for environments where such a thing doesn’t need to exist
This commit is contained in:
Liz Rice
2019-04-11 18:31:26 +01:00
parent 01179963ce
commit 248942e2fa
-1
View File
@@ -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)