api2/types/tape/media_location: fix deserialization of MediaLocation::Vault
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
		
				
					committed by
					
						 Dietmar Maurer
						Dietmar Maurer
					
				
			
			
				
	
			
			
			
						parent
						
							56d22c66c0
						
					
				
				
					commit
					7c9fb570cc
				
			| @ -83,7 +83,7 @@ impl std::str::FromStr for MediaLocation { | |||||||
|             return Ok(MediaLocation::Online(changer.to_string())); |             return Ok(MediaLocation::Online(changer.to_string())); | ||||||
|         } |         } | ||||||
|         if let Some(vault) = s.strip_prefix("vault-") { |         if let Some(vault) = s.strip_prefix("vault-") { | ||||||
|             return Ok(MediaLocation::Online(vault.to_string())); |             return Ok(MediaLocation::Vault(vault.to_string())); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         bail!("MediaLocation parse error"); |         bail!("MediaLocation parse error"); | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user