diff --git a/cmd/fetch.go b/cmd/fetch.go index 7d93468..c56cede 100644 --- a/cmd/fetch.go +++ b/cmd/fetch.go @@ -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()))