Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
Be more explicit in devices
Browse files Browse the repository at this point in the history
  • Loading branch information
ericadowd committed Jan 7, 2015
1 parent 74c0db4 commit bca63f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hvm2pv/hvm2pv.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@
new_description = image.description.replace("HVM", "64-bit EBS")
logging.info("old description = " + image.description + "; new description = " + new_description)

new_root_device_name = image.root_device_name.replace("xv", "s")
new_root_device_name = image.root_device_name.replace("/dev/xv", "/dev/s")
logging.info("old root device name = " + image.root_device_name + "; new root device name = " + new_root_device_name)

bdm = boto.ec2.blockdevicemapping.BlockDeviceMapping()
for key in image.block_device_mapping:
new_key = key.replace("xv", "s")
new_key = key.replace("/dev/xv", "/dev/s")
logging.info("old device name = " + key + "; new device name = " + new_key)
bdm[new_key] = boto.ec2.blockdevicemapping.BlockDeviceType()
if image.block_device_mapping[key].ephemeral_name is not None:
Expand Down

0 comments on commit bca63f5

Please sign in to comment.