diff options
| author | Thuleau Édouard <thuleau@gmail.com> | 2011-09-07 14:32:00 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-09-07 14:32:00 +0000 |
| commit | 560698829e4c7168053775e7e5e9f1e92bb98fa8 (patch) | |
| tree | 38a3054e890713f12e7ca66d837e77bfcce3beb8 /nova/api | |
| parent | d01010583d5d581591c9edcf36c4da54f0c78da9 (diff) | |
| parent | 59cac7cfc5fba0aa084171958b5b28f51a723010 (diff) | |
An AMI image without ramdisk image should start.
It's possible with EC2 API but it fails with OS API.
This patch corrects that by returns 'None' value if AMI image doesn't contain 'ramdisk_id' metadata.
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/create_instance_helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/create_instance_helper.py b/nova/api/openstack/create_instance_helper.py index 29e071609..67e669c17 100644 --- a/nova/api/openstack/create_instance_helper.py +++ b/nova/api/openstack/create_instance_helper.py @@ -282,7 +282,7 @@ class CreateInstanceHelper(object): try: ramdisk_id = image_meta['properties']['ramdisk_id'] except KeyError: - raise exception.RamdiskNotFoundForImage(image_id=image_id) + ramdisk_id = None return kernel_id, ramdisk_id |
