From 250de6133ddbd75dfa933b01038d96b8d24a5cb5 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 27 May 2025 15:46:29 -0400 Subject: [PATCH] Stop trying to save a fingerprint that didn't exist --- misc/prepfish.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/prepfish.py b/misc/prepfish.py index 921108f1..aee229a0 100644 --- a/misc/prepfish.py +++ b/misc/prepfish.py @@ -240,8 +240,8 @@ def get_redfish_fingerprint(): rsp = s.raw_command(0x2c, 1, data=(0x52, 1)) if rsp['data'][:2] == b'\x52\x01': fprint = rsp['data'][2:] - with open('/run/redfish/fingerprint', 'wb') as printout: - printout.write(fprint) + with open('/run/redfish/fingerprint', 'wb') as printout: + printout.write(fprint) return fprint