1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 10:50:35 +03:00

Add newline when writing to /etc/auto.master

This commit is contained in:
Игорь Чудов 2020-05-14 22:12:02 +04:00
parent e864235761
commit 70c233a0df
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -41,7 +41,8 @@ def add_line_if_missing(filename, ins_line):
if ins_line in line.strip():
break
else:
f.write(ins_line)
f.write(ins_line + '\n')
f.flush()
class cifs_applier(applier_frontend):
def __init__(self, storage):