get_disks: don't fail on zfs_devices
zfs does not have to be installed, so simply log an error and continue, users still get an error when clicking directly on ZFS Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
		
				
					committed by
					
						 Dietmar Maurer
						Dietmar Maurer
					
				
			
			
				
	
			
			
			
						parent
						
							a9649ddc44
						
					
				
				
					commit
					3ec99affc8
				
			| @ -743,7 +743,10 @@ pub fn get_disks( | ||||
|  | ||||
|     let partition_type_map = get_partition_type_info()?; | ||||
|  | ||||
|     let zfs_devices = zfs_devices(&partition_type_map, None)?; | ||||
|     let zfs_devices = zfs_devices(&partition_type_map, None).or_else(|err| -> Result<HashSet<u64>, Error> { | ||||
|         eprintln!("error getting zfs devices: {}", err); | ||||
|         Ok(HashSet::new()) | ||||
|     })?; | ||||
|  | ||||
|     let lvm_devices = get_lvm_devices(&partition_type_map)?; | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user