mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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>
This commit is contained in:
parent
a25367685d
commit
fdb3aa487f
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user