From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Mon, 9 Nov 2020 14:41:17 +0000 (+0100)
Subject: decodebytes, not decodestring
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7fbe1127baeeb1b5b5f8d790dd8b439d3abf5248;p=tests.git

decodebytes, not decodestring
---

diff --git a/system/TestNode.py b/system/TestNode.py
index 355225f..686a38d 100644
--- a/system/TestNode.py
+++ b/system/TestNode.py
@@ -182,9 +182,9 @@ class TestNode:
             print("Dry_run: skipped writing of iso image")
             return True
         else:
-            # with python3 we need to call decodestring here
+            # with python3 we need to call decodebytes here
             with open(filename,'wb') as storage:
-                storage.write(base64.decodestring(bencoded))
+                storage.write(base64.decodebytes(bencoded))
             return True
 
     def nodestate_reinstall(self):