volumes are now encrypted if snapshots are encrypted
This commit is contained in:
parent
44195a9151
commit
af0007ad2b
@ -1656,6 +1656,8 @@ class EBSBackend(object):
|
||||
snapshot = self.get_snapshot(snapshot_id)
|
||||
if size is None:
|
||||
size = snapshot.volume.size
|
||||
if snapshot.encrypted:
|
||||
encrypted = snapshot.encrypted
|
||||
volume = Volume(self, volume_id, size, zone, snapshot_id, encrypted)
|
||||
self.volumes[volume_id] = volume
|
||||
return volume
|
||||
|
Loading…
Reference in New Issue
Block a user