summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Young <sleepsonthefloor@gmail.com>2011-08-12 08:43:42 -0700
committerAnthony Young <sleepsonthefloor@gmail.com>2011-08-12 08:43:42 -0700
commit15271a08de44da1813bfb2a2b68a2f28ef887c21 (patch)
treeb6b3b4f051ce58ef56ca34216ee4ce3831e4f9bc
parent1f116df9b65fc317db26492115bc36ce465ba296 (diff)
downloadnova-15271a08de44da1813bfb2a2b68a2f28ef887c21.tar.gz
nova-15271a08de44da1813bfb2a2b68a2f28ef887c21.tar.xz
nova-15271a08de44da1813bfb2a2b68a2f28ef887c21.zip
fix typo that causes ami instances to launch with a kernal as ramdisk
-rw-r--r--nova/virt/xenapi/vmops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/xenapi/vmops.py b/nova/virt/xenapi/vmops.py
index b9cd59946..b1522729a 100644
--- a/nova/virt/xenapi/vmops.py
+++ b/nova/virt/xenapi/vmops.py
@@ -186,7 +186,7 @@ class VMOps(object):
instance.project_id, ImageType.KERNEL)[0]
if instance.ramdisk_id:
ramdisk = VMHelper.fetch_image(context, self._session,
- instance.id, instance.kernel_id, instance.user_id,
+ instance.id, instance.ramdisk_id, instance.user_id,
instance.project_id, ImageType.RAMDISK)[0]
# Create the VM ref and attach the first disk
first_vdi_ref = self._session.call_xenapi('VDI.get_by_uuid',