diff options
author | Scott Moser <smoser@ubuntu.com> | 2015-05-15 16:28:24 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2015-05-15 16:28:24 -0400 |
commit | 33db529855c0c0746091868c69f5d694bff7b9a8 (patch) | |
tree | 2403214f45234b94263de121baa3b0858fdfc15c /cloudinit/distros | |
parent | b811fddc03511d7325775a68f076829dcb94349a (diff) | |
download | vyos-cloud-init-33db529855c0c0746091868c69f5d694bff7b9a8.tar.gz vyos-cloud-init-33db529855c0c0746091868c69f5d694bff7b9a8.zip |
pep8 fixes
Diffstat (limited to 'cloudinit/distros')
-rw-r--r-- | cloudinit/distros/rhel.py | 4 |
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): |