volumes are now encrypted if snapshots are encrypted

This commit is contained in:
Kieran Doonan 2016-07-04 14:40:13 +01:00
parent 44195a9151
commit af0007ad2b

View File

@ -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