diff --git a/system/sysctl b/system/sysctl index 050c2effb1c..c16056937d7 100644 --- a/system/sysctl +++ b/system/sysctl @@ -246,7 +246,7 @@ class SysctlModule(object): f = open(tmp_path,"w") try: for l in self.fixed_lines: - f.write(l) + f.write(l.strip() + "\n") except IOError, e: self.module.fail_json(msg="Failed to write to file %s: %s" % (tmp_path, str(e))) f.flush()