summaryrefslogtreecommitdiff
path: root/cloudinit/distros
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-05-15 16:28:24 -0400
committerScott Moser <smoser@ubuntu.com>2015-05-15 16:28:24 -0400
commit33db529855c0c0746091868c69f5d694bff7b9a8 (patch)
tree2403214f45234b94263de121baa3b0858fdfc15c /cloudinit/distros
parentb811fddc03511d7325775a68f076829dcb94349a (diff)
downloadvyos-cloud-init-33db529855c0c0746091868c69f5d694bff7b9a8.tar.gz
vyos-cloud-init-33db529855c0c0746091868c69f5d694bff7b9a8.zip
pep8 fixes
Diffstat (limited to 'cloudinit/distros')
-rw-r--r--cloudinit/distros/rhel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/distros/rhel.py b/cloudinit/distros/rhel.py
index eec17c61..30c805a6 100644
--- a/cloudinit/distros/rhel.py
+++ b/cloudinit/distros/rhel.py
@@ -133,7 +133,7 @@ class Distro(distros.Distro):
rhel_util.update_sysconfig_file(out_fn, locale_cfg)
def _write_hostname(self, hostname, out_fn):
- # systemd will never update previous-hostname for us, so
+ # systemd will never update previous-hostname for us, so
# we need to do it ourselves
if self.uses_systemd() and out_fn.endswith('/previous-hostname'):
util.write_file(out_fn, hostname)
@@ -161,7 +161,7 @@ class Distro(distros.Distro):
def _read_hostname(self, filename, default=None):
if self.uses_systemd() and filename.endswith('/previous-hostname'):
- return util.load_file(filename).strip()
+ return util.load_file(filename).strip()
elif self.uses_systemd():
(out, _err) = util.subp(['hostname'])
if len(out):