Browse Source

Fixed the `uri` variable to avoid double slashes
when adding device name

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>

Mihaela Balutoiu 2 năm trước cách đây
mục cha
commit
ac4997fd14
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      coriolis/providers/replicator.py

+ 1 - 1
coriolis/providers/replicator.py

@@ -166,7 +166,7 @@ class Client(object):
 
     @utils.retry_on_error()
     def get_status(self, device=None, brief=True):
-        uri = "%s/api/v1/dev/" % (self._base_uri)
+        uri = "%s/api/v1/dev" % (self._base_uri)
         if device is not None:
             uri = "%s/%s/" % (uri, device)
         params = {