snapshot: Copy some missing attrs to the snapshot bdms
The following commit: 33e3d4c6b9 wrongly
drops some of the block device mapping information that is needed to
fully describe the block device mapping. In addition - EC2 API needs
this information to be able to format the output.
Change-Id: I18a0aab1dd966f28973e1f3705f263cb46a42639
Partial-bug: #1370177
This commit is contained in:
@@ -277,7 +277,8 @@ def create_image_bdm(image_ref, boot_index=0):
|
||||
def snapshot_from_bdm(snapshot_id, template):
|
||||
"""Create a basic volume snapshot BDM from a given template bdm."""
|
||||
|
||||
copy_from_template = ['disk_bus', 'device_type', 'boot_index']
|
||||
copy_from_template = ('disk_bus', 'device_type', 'boot_index',
|
||||
'delete_on_termination', 'volume_size')
|
||||
snapshot_dict = {'source_type': 'snapshot',
|
||||
'destination_type': 'volume',
|
||||
'snapshot_id': snapshot_id}
|
||||
|
||||
Reference in New Issue
Block a user