shoenig / marathonctl

marathonctl is a CLI tool for Marathon
MIT License
100 stars 26 forks source link

hosts passed through cli not working #30

Closed scalp42 closed 8 years ago

scalp42 commented 8 years ago

If you try to pass a host:port combo using the -h flag, it's not working:

root@mesos-master # marathonctl -h=prod-marathon:8080 app list
request to prod-marathon:8080 failed
failed to get response requests to all hosts failed

root@mesos-master # http prod-marathon:8080/ping
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Cache-Control: must-revalidate,no-cache,no-store
Content-Length: 5
Content-Type: text/plain;charset=iso-8859-1
Date: Mon, 28 Dec 2015 23:11:06 GMT
Date: Mon, 28 Dec 2015 23:11:06 GMT
Expires: 0
Pragma: no-cache
Server: Jetty(9.3.z-SNAPSHOT)
X-Marathon-Leader: master:8080
X-Marathon-Via: 1.1 master:8080

pong
scalp42 commented 8 years ago

Oh, you need http://.