Pass byte stream to the cnfvar from the dynamic cnf setting
authorPlamen Dimitrov <pdimitrov@pevogam.com>
Fri, 25 Jan 2019 17:32:03 +0000 (19:32 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 7 Feb 2019 15:50:39 +0000 (16:50 +0100)
src/arnied_wrapper.py

index c1666bd..463ee4e 100644 (file)
@@ -666,7 +666,7 @@ def set_cnf_dynamic(cnf, config_file=None, kind="cnf", timeout=30, vm=None):
              "generated" if generated else "user-supplied",
              config_file, " on %s" % vm.name if vm is not None else "")
 
-    fd = open(config_path, "w")
+    fd = open(config_path, "wb")
     try:
         SET_CNF_METHODS = {
             "raw": cnfvar.write_cnf_raw,