Skip to content
Snippets Groups Projects
Unverified Commit 248942e2 authored by Liz Rice's avatar Liz Rice
Browse files

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 
parent 01179963
No related branches found
No related tags found
No related merge requests found
...@@ -199,7 +199,6 @@ func loadConfig(nodetype check.NodeType) string { ...@@ -199,7 +199,6 @@ func loadConfig(nodetype check.NodeType) string {
// isMaster verify if master components are running on the node. // isMaster verify if master components are running on the node.
func isMaster() bool { func isMaster() bool {
_ = loadConfig(check.MASTER)
glog.V(2).Info("Checking if the current node is running master components") glog.V(2).Info("Checking if the current node is running master components")
masterConf := viper.Sub(string(check.MASTER)) masterConf := viper.Sub(string(check.MASTER))
components, err := getBinaries(masterConf) components, err := getBinaries(masterConf)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment