Skip to content

Commit

Permalink
Fix mesos slaves endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
dtaniwaki committed Feb 15, 2018
1 parent d3b3bfa commit cf3b182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ucrspawner/ucrspawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,12 +468,12 @@ def get_mesos_slaves(self):
mesos_master_host = self.mesos_master_host
else:
info = self.marathon.get_info()
mesos_master_host = urljoin(info.marathon_config.mesos_leader_ui_url, '/slaves')
mesos_master_host = info.marathon_config.mesos_leader_ui_url

headers = {
'Accept': 'application/json'
}
response = requests.get(mesos_master_host, headers=headers)
response = requests.get(urljoin(mesos_master_host, '/slaves'), headers=headers)
json = response.json()
slaves = [MesosSlave(j) for j in json['slaves']]
for c in self.get_constraints():
Expand Down

0 comments on commit cf3b182

Please sign in to comment.