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:
		
							parent
							
								
									e3d3e149f0
								
							
						
					
					
						commit
						9f468f93f5
					
				| @ -78,6 +78,8 @@ class ThinPool(qubes.storage.Pool): | |||||||
|         ''' Initialize a :py:class:`qubes.storage.Volume` from `volume_config`. |         ''' 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 'vid' not in volume_config.keys(): | ||||||
|             if vm and hasattr(vm, 'name'): |             if vm and hasattr(vm, 'name'): | ||||||
|                 vm_name = vm.name |                 vm_name = vm.name | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Rusty Bird
						Rusty Bird