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):
url = self.baseurl + "/" + res
self._do_request(url, method="DELETE")
def get_resource(self, url):
repl = self._do_request(self.baseurl + "/" + url)
def get_resource(self, resource):
url = self.baseurl
if self.subscription:
url += "/" + self.subscription
url += ODATA_SUFFIX
url += "/" + resource
repl = self._do_request(url)
if repl is None:
return []
if repl.tag == ns('atom', 'feed'):
......
......@@ -8,7 +8,7 @@ requires = [
]
setup(name='scvmm-client-py',
version='0.3',
version='0.4',
description='',
author='',
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