From b24b376fabd54e4dc96ffc1b90a984addf42fc4c Mon Sep 17 00:00:00 2001 From: chengcheng-chcheng <63850735+chengcheng-chcheng@users.noreply.github.com> Date: Fri, 8 May 2020 01:01:22 +0800 Subject: make suse and sles support 127.0.1.1 (#336) Move from 127.0.0.1 to 127.0.1.1 for localhost IP addr for opensuse and sles --- cloudinit/distros/opensuse.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cloudinit') diff --git a/cloudinit/distros/opensuse.py b/cloudinit/distros/opensuse.py index dd56a3f4..68028d20 100644 --- a/cloudinit/distros/opensuse.py +++ b/cloudinit/distros/opensuse.py @@ -144,6 +144,9 @@ class Distro(distros.Distro): return default return hostname + def _get_localhost_ip(self): + return "127.0.1.1" + def _read_hostname_conf(self, filename): conf = HostnameConf(util.load_file(filename)) conf.parse() -- cgit v1.2.3