diff options
-rw-r--r-- | cloudinit/distros/rhel.py | 3 | ||||
-rw-r--r-- | cloudinit/distros/ubuntu.py | 3 |
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: |