Fixing licensing (#7226)

This commit is contained in:
Corey Hulen
2017-08-16 11:28:48 -07:00
committed by GitHub
parent 29a7e182a6
commit 4f85ed985d
+1 -1
View File
@@ -655,7 +655,7 @@ func Desanitize(cfg *model.Config) {
}
func IsLeader() bool {
if IsLicensed && *Cfg.ClusterSettings.Enable && einterfaces.GetClusterInterface() != nil {
if IsLicensed() && *Cfg.ClusterSettings.Enable && einterfaces.GetClusterInterface() != nil {
return einterfaces.GetClusterInterface().IsLeader()
} else {
return true