From: Plamen Dimitrov Date: Fri, 25 Jan 2019 17:32:03 +0000 (+0200) Subject: Pass byte stream to the cnfvar from the dynamic cnf setting X-Git-Tag: v1.4~5^2 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=1626d17ebb18771311620a11bb7c9d50c5f4ef73;p=pyi2ncommon Pass byte stream to the cnfvar from the dynamic cnf setting --- diff --git a/src/arnied_wrapper.py b/src/arnied_wrapper.py index c1666bd..463ee4e 100644 --- a/src/arnied_wrapper.py +++ b/src/arnied_wrapper.py @@ -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,