Commit cad3523b authored by Sigmund Augdal's avatar Sigmund Augdal

fix broken get_resource after recent api changes

parent 7be7ebce
...@@ -158,8 +158,13 @@ class Client(object): ...@@ -158,8 +158,13 @@ class Client(object):
url = self.baseurl + "/" + res url = self.baseurl + "/" + res
self._do_request(url, method="DELETE") self._do_request(url, method="DELETE")
def get_resource(self, url): def get_resource(self, resource):
repl = self._do_request(self.baseurl + "/" + url) url = self.baseurl
if self.subscription:
url += "/" + self.subscription
url += ODATA_SUFFIX
url += "/" + resource
repl = self._do_request(url)
if repl is None: if repl is None:
return [] return []
if repl.tag == ns('atom', 'feed'): if repl.tag == ns('atom', 'feed'):
......
...@@ -8,7 +8,7 @@ requires = [ ...@@ -8,7 +8,7 @@ requires = [
] ]
setup(name='scvmm-client-py', setup(name='scvmm-client-py',
version='0.3', version='0.4',
description='', description='',
author='', author='',
author_email='', author_email='',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment