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
pull/260/head
Liz Rice 5 years ago
parent 596dae03d9
commit de623220e1
No known key found for this signature in database
GPG Key ID: 837476CA214296CB

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

Loading…
Cancel
Save