From b69c8ae517a2249aec9690ce27c571b2f9f20c56 Mon Sep 17 00:00:00 2001 From: parmentelat Date: Mon, 17 Dec 2018 14:47:43 +0100 Subject: [PATCH] for python3, GetBootMedium needs to open image file as binary --- PLC/Methods/GetBootMedium.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PLC/Methods/GetBootMedium.py b/PLC/Methods/GetBootMedium.py index d9fc6712..9a4b3b89 100644 --- a/PLC/Methods/GetBootMedium.py +++ b/PLC/Methods/GetBootMedium.py @@ -602,7 +602,7 @@ class GetBootMedium(Method): self.cleantrash() return filename else: - with open(node_image) as feed: + with open(node_image, "rb") as feed: result = feed.read() self.trash.append(node_image) self.cleantrash() -- 2.47.0