summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-11-20 01:04:31 -0500
committerScott Moser <smoser@ubuntu.com>2012-11-20 01:04:31 -0500
commit3cb9a6ed620ab9200a18bf69cdac5ac518ca214c (patch)
treedbaff893eac436880e92ce3e5921f954b3b1bb4a /cloudinit
parent7a7cf335453146a775c8566e5a4ed4716a03a874 (diff)
downloadvyos-cloud-init-3cb9a6ed620ab9200a18bf69cdac5ac518ca214c.tar.gz
vyos-cloud-init-3cb9a6ed620ab9200a18bf69cdac5ac518ca214c.zip
pep8 and pylint
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/distros/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py
index e724a418..6a684b89 100644
--- a/cloudinit/distros/__init__.py
+++ b/cloudinit/distros/__init__.py
@@ -429,6 +429,7 @@ class Distro(object):
msg = "Can not create sudoers rule addition with type %r"
raise TypeError(msg % (util.obj_name(rules)))
content = "\n".join(lines)
+ content += "\n" # trailing newline
self.ensure_sudo_dir(os.path.dirname(sudo_file))
if not os.path.exists(sudo_file):