From bb4a9654929254a2b800aa4459db23b85abdbffd Mon Sep 17 00:00:00 2001 From: tamarrow Date: Mon, 15 Aug 2016 16:23:27 -0700 Subject: [PATCH] Make sure that marathon URL ends with trailing slash (#718) --- dcos/marathon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dcos/marathon.py b/dcos/marathon.py index fac61b0..89d9614 100644 --- a/dcos/marathon.py +++ b/dcos/marathon.py @@ -130,6 +130,8 @@ class Client(object): """ def __init__(self, marathon_url, timeout=http.DEFAULT_TIMEOUT): + if not marathon_url.endswith('/'): + marathon_url += '/' self._base_url = marathon_url self._timeout = timeout