for python3, GetBootMedium needs to open image file as binary
[plcapi.git] / PLC / Methods / GetBootMedium.py
index d9fc671..9a4b3b8 100644 (file)
@@ -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()