Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Mesos: state.json is removed in 1.8+ renamed /state. Fixes #75
Browse files Browse the repository at this point in the history
  • Loading branch information
nemosupremo committed Jul 30, 2019
1 parent ff5c01e commit 313b52c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler/mesos/mesos.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func (m *mesosScheduler) getMesosTask(taskId string) (mesosTask, string, string,
var masterErr error
if masterHosts, protocol, err := m.getMesosMaster(); err == nil {
for _, host := range masterHosts {
if resp, err := http.Get(protocol + "://" + host + "/state.json"); err == nil {
if resp, err := http.Get(protocol + "://" + host + "/state"); err == nil {
defer resp.Body.Close()
if err := json.NewDecoder(resp.Body).Decode(&state); err == nil {
if state.Pid == state.Leader {
Expand Down

0 comments on commit 313b52c

Please sign in to comment.