fix for mesos fetch

This commit is contained in:
Nhat Tan Le 2020-11-13 22:47:16 -08:00
parent 165e96466d
commit a459c89259

View file

@ -247,12 +247,10 @@ func fetchLeader(cmd *cobra.Command, args []string) {
}
func fetchMesos(cmd *cobra.Command, args []string) {
log.Infof("Fetching Mesos-master leader from %v \n", args)
if len(args) < 1 {
log.Info("Zookeepers were not indicated. Fetch mesos via localhost.")
args = append(args, "localhost")
}
log.Infof("Fetching Mesos-master leader from %v \n", args)
url, err := realis.MesosFromZKOpts(realis.ZKEndpoints(args...), realis.ZKPath(cmd.Flag("zkPath").Value.String()))