diff options
author | Noel Power <noel.power@suse.com> | 2018-10-10 19:19:24 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-11-14 05:07:16 +0100 |
commit | fdb3aa487f0ceb9989959036efd98f54563cd3ce (patch) | |
tree | bfafb573106c1721d8afc478cb3b69778cd29456 /python | |
parent | a25367685d82437b6535d762eb0628c47bef2cc8 (diff) | |
download | samba-fdb3aa487f0ceb9989959036efd98f54563cd3ce.tar.gz |
python/samba/netcmd: PY3 port samba.tests.samba_tool.edit
Need to write bytes to file
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/netcmd/user.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/netcmd/user.py b/python/samba/netcmd/user.py index 0b8314dd1ca..447f1a345f6 100644 --- a/python/samba/netcmd/user.py +++ b/python/samba/netcmd/user.py @@ -2421,7 +2421,7 @@ LDAP server using the 'nano' editor. editor = 'vi' with tempfile.NamedTemporaryFile(suffix=".tmp") as t_file: - t_file.write(result_ldif) + t_file.write(get_bytes(result_ldif)) t_file.flush() try: check_call([editor, t_file.name]) |