Explorar o código

BatcaveClient: fix duplicate base_url prefix in get_nodefield()

Helge Jung %!s(int64=9) %!d(string=hai) anos
pai
achega
0630a661e1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/batcave/client.py

+ 1 - 1
modules/batcave/client.py

@@ -70,7 +70,7 @@ class BatcaveClient(object):
     def get_nodefield(self, nodeid, field):
         """Query the given field for the given nodeid from the BATCAVE."""
 
-        url = self.base_url + 'node/{0}/{1}'.format(nodeid, field)
+        url = 'node/{0}/{1}'.format(nodeid, field)
         ctx = "node '{0}'->'{1}'".format(nodeid, field)
 
         return self.__load_response(url, ctx)