diff options
| author | vladimir.p <vladimir@zadarastorage.com> | 2011-07-15 18:04:01 -0700 |
|---|---|---|
| committer | vladimir.p <vladimir@zadarastorage.com> | 2011-07-15 18:04:01 -0700 |
| commit | f21dad5a5ad8e06a4c86510bfa3bc430442328f4 (patch) | |
| tree | 0eb51e7d95acf32f4464e1df0162392ab2a98d1d /nova/api | |
| parent | b814f9fef3efa1bdcb7e03a9161e08721b7bc8c4 (diff) | |
| parent | cf25ab33cb7d6b5e233a767ad96b3c45b1387b5e (diff) | |
merged with 1280
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/views/images.py | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/nova/api/openstack/views/images.py b/nova/api/openstack/views/images.py index 5c0510377..873ce212a 100644 --- a/nova/api/openstack/views/images.py +++ b/nova/api/openstack/views/images.py @@ -121,16 +121,20 @@ class ViewBuilderV11(ViewBuilder): href = self.generate_href(image_obj["id"]) bookmark = self.generate_bookmark(image_obj["id"]) - image["links"] = [{ - "rel": "self", - "href": href, - }] + image["links"] = [ + { + "rel": "self", + "href": href, + }, + { + "rel": "bookmark", + "href": bookmark, + }, + + ] if detail: image["metadata"] = image_obj.get("properties", {}) - image["links"].append({"rel": "bookmark", - "href": bookmark, - }) return image |
