Revision dd7461ac
b/kamaki/clients/__init__.py | ||
---|---|---|
193 | 193 |
|
194 | 194 |
sendlog.info('perform a %s @ %s', method, self.base_url) |
195 | 195 |
|
196 |
self.http_client.url = self.base_url |
|
196 |
self.http_client.url = self.base_url + ( |
|
197 |
'/' if (self.base_url and self.base_url[-1]) != '/' else '') |
|
197 | 198 |
self.http_client.path = quote(path.encode('utf8')) |
198 | 199 |
r = self.http_client.perform_request( |
199 | 200 |
method, |
b/kamaki/clients/image.py | ||
---|---|---|
52 | 52 |
|
53 | 53 |
:returns: (list) id,name + full image info if detail |
54 | 54 |
""" |
55 |
path = path4url('images', 'detail') if detail else path4url('images/') |
|
55 |
path = path4url('images', 'detail') if detail else ( |
|
56 |
path4url('images') + '/') |
|
56 | 57 |
|
57 | 58 |
async_params = {} |
58 | 59 |
if isinstance(filters, dict): |
... | ... | |
108 | 109 |
|
109 | 110 |
:param properties: (dict) image properties (X-Image-Meta-Property) |
110 | 111 |
""" |
111 |
path = path4url('images/')
|
|
112 |
path = path4url('images') + '/'
|
|
112 | 113 |
self.set_header('X-Image-Meta-Name', name) |
113 | 114 |
self.set_header('X-Image-Meta-Location', location) |
114 | 115 |
|
Also available in: Unified diff