From 5797b07865d3d88c141583422e336982d7eaa455 Mon Sep 17 00:00:00 2001 From: Christoph Seifert Date: Fri, 7 Aug 2015 15:50:45 +0200 Subject: [PATCH] Fix attribute error of create workflow. --- .../dashboards/project/instances/workflows/create_instance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py b/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py index ddea8a5..a2db938 100644 --- a/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py +++ b/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py @@ -425,7 +425,7 @@ class SetInstanceDetailsAction(workflows.Action): context.get('project_id'), self._images_cache) for image in images: - image.bytes = image.virtual_size or image.size + image.bytes = getattr(image, 'virtual_size', None) or image.size image.volume_size = max( image.min_disk, functions.bytes_to_gigabytes(image.bytes)) choices.append((image.id, image)) -- 2.5.0