]> git.proxmox.com Git - proxmox-backup.git/commitdiff
get_hardware_address: must be uppercased
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 26 Oct 2020 19:18:26 +0000 (20:18 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 26 Oct 2020 19:18:28 +0000 (20:18 +0100)
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>
src/tools.rs

index 0e4a65c73dfbb7ef3d68c43754cbd21c8eb22e6b..fa52759f6b3b2a1827ca9e6f44a38879470252a5 100644 (file)
@@ -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> {