From 52fe9e8ece7aa122772b146dc0b3e2364e8bfa9e Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 26 Oct 2020 20:18:26 +0100 Subject: [PATCH] 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 --- src/tools.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools.rs b/src/tools.rs index 0e4a65c7..fa52759f 100644 --- a/src/tools.rs +++ b/src/tools.rs @@ -327,7 +327,7 @@ pub fn get_hardware_address() -> Result { 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> {