From 9f468f93f5f5e32acd792b8cb11a7e4596633026 Mon Sep 17 00:00:00 2001 From: Rusty Bird Date: Fri, 16 Feb 2018 21:47:32 +0000 Subject: [PATCH] lvm_thin: fill in volume's revisions_to_keep from pool Otherwise, the base class defaults revisions_to_keep to 0. --- qubes/storage/lvm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qubes/storage/lvm.py b/qubes/storage/lvm.py index e814bb06..8cae3115 100644 --- a/qubes/storage/lvm.py +++ b/qubes/storage/lvm.py @@ -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