summaryrefslogtreecommitdiffstats
path: root/nova/compute
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2011-06-23 19:51:00 +0900
committerIsaku Yamahata <yamahata@valinux.co.jp>2011-06-23 19:51:00 +0900
commit4b5fdb2ee109960be6b3ff1fa8068ab3ec428283 (patch)
treedc4b7a29a2d003970e872b3d470c58f2443e8b47 /nova/compute
parent1c4a3e14a0cef6938c477908d5c3bfe5ddf0e07b (diff)
ec2: bundle block device mapping
device name in block device mapping of bundle doesn't necessary carry "/dev/". So prepend it before processing.
Diffstat (limited to 'nova/compute')
-rw-r--r--nova/compute/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py
index 884ec9198..b3635d71f 100644
--- a/nova/compute/api.py
+++ b/nova/compute/api.py
@@ -261,7 +261,7 @@ class API(base.Base):
"""tell vm driver to create ephemeral/swap device at boot time by
updating BlockDeviceMapping
"""
- for bdm in mappings:
+ for bdm in ec2utils.mappings_prepend_dev(mappings):
LOG.debug(_("bdm %s"), bdm)
virtual_name = bdm['virtual']