lvm_thin: fill in volume's revisions_to_keep from pool

Otherwise, the base class defaults revisions_to_keep to 0.
This commit is contained in:
Rusty Bird 2018-02-16 21:47:32 +00:00
parent e3d3e149f0
commit 9f468f93f5
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

View File

@ -78,6 +78,8 @@ class ThinPool(qubes.storage.Pool):
''' Initialize a :py:class:`qubes.storage.Volume` from `volume_config`.
'''
if 'revisions_to_keep' not in volume_config.keys():
volume_config['revisions_to_keep'] = self.revisions_to_keep
if 'vid' not in volume_config.keys():
if vm and hasattr(vm, 'name'):
vm_name = vm.name