summaryrefslogtreecommitdiff
path: root/cloudinit/distros
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-06-19 21:49:58 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-06-19 21:49:58 -0700
commit1f138d244b1402298d31adcbc6815eca12c89da9 (patch)
treefad2b277423c235b7e79f6b0bb888c95aae9fc61 /cloudinit/distros
parent013d5734d2193d81502d1f73480cd49569a82dc8 (diff)
downloadvyos-cloud-init-1f138d244b1402298d31adcbc6815eca12c89da9.tar.gz
vyos-cloud-init-1f138d244b1402298d31adcbc6815eca12c89da9.zip
Pylint line length fixups.
Diffstat (limited to 'cloudinit/distros')
-rw-r--r--cloudinit/distros/rhel.py3
-rw-r--r--cloudinit/distros/ubuntu.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/cloudinit/distros/rhel.py b/cloudinit/distros/rhel.py
index e9f3f5d9..b67ae5b8 100644
--- a/cloudinit/distros/rhel.py
+++ b/cloudinit/distros/rhel.py
@@ -117,7 +117,8 @@ class Distro(distros.Distro):
if not hostname_prev or hostname_prev != hostname:
update_files.append(prev_file)
if (not hostname_in_sys or
- (hostname_in_sys == hostname_prev and hostname_in_sys != hostname)):
+ (hostname_in_sys == hostname_prev
+ and hostname_in_sys != hostname)):
write_fn = self._paths.join(False, "/etc/sysconfig/network")
update_files.append(write_fn)
for fn in update_files:
diff --git a/cloudinit/distros/ubuntu.py b/cloudinit/distros/ubuntu.py
index 515b59c8..5a1b572e 100644
--- a/cloudinit/distros/ubuntu.py
+++ b/cloudinit/distros/ubuntu.py
@@ -72,7 +72,8 @@ class Distro(distros.Distro):
if not hostname_prev or hostname_prev != hostname:
update_files.append(prev_fn)
if (not hostname_in_etc or
- (hostname_in_etc == hostname_prev and hostname_in_etc != hostname)):
+ (hostname_in_etc == hostname_prev and
+ hostname_in_etc != hostname)):
write_fn = self._paths.join(False, "/etc/hostname")
update_files.append(write_fn)
for fn in update_files: