logextract: Make sure config files end with a newline

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-10-24 09:43:26 -04:00
parent b6bf455155
commit 363bcfb233
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class GatherConfig:
self.comments.append(comment)
def write_file(self):
f = open(self.filename, 'wb')
f.write('\n'.join(self.comments + self.config_lines))
f.write('\n'.join(self.comments + self.config_lines).strip() + '\n')
f.close()