get_hardware_address: must be uppercased
we're a bit strict here what we accept, rather than changing that lets do it like PVE/PMG and uppercase. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
		@ -327,7 +327,7 @@ pub fn get_hardware_address() -> Result<String, Error> {
 | 
			
		||||
    let contents = proxmox::tools::fs::file_get_contents(FILENAME)?;
 | 
			
		||||
    let digest = md5sum(&contents)?;
 | 
			
		||||
 | 
			
		||||
    Ok(proxmox::tools::bin_to_hex(&digest))
 | 
			
		||||
    Ok(proxmox::tools::bin_to_hex(&digest).to_uppercase())
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
pub fn assert_if_modified(digest1: &str, digest2: &str) -> Result<(), Error> {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user