diff options
| author | Brian Lamar <brian.lamar@rackspace.com> | 2011-04-04 10:59:44 -0400 |
|---|---|---|
| committer | Brian Lamar <brian.lamar@rackspace.com> | 2011-04-04 10:59:44 -0400 |
| commit | bd64c4f6bebb50528b87bf6e3f64d7d1cba053df (patch) | |
| tree | 895d39c8c3b03bd5a8ff5691ff848f356301892b /nova/api | |
| parent | 0ec4352046939785b3ffa390e6d8264ce4d99f98 (diff) | |
Fixes error which occurs when no name is specified for an image.
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/views/images.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/views/images.py b/nova/api/openstack/views/images.py index 3807fa95f..d8578ebdd 100644 --- a/nova/api/openstack/views/images.py +++ b/nova/api/openstack/views/images.py @@ -61,7 +61,7 @@ class ViewBuilder(object): image = { "id": image_obj["id"], - "name": image_obj["name"], + "name": image_obj.get("name"), } if "instance_id" in properties: |
