forked from pool/cloud-init
Dirk Mueller
0875a89e89
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=80
27 lines
938 B
Diff
27 lines
938 B
Diff
Index: cloud-init-0.7.8/cloudinit/config/cc_resolv_conf.py
|
|
===================================================================
|
|
--- cloud-init-0.7.8.orig/cloudinit/config/cc_resolv_conf.py
|
|
+++ cloud-init-0.7.8/cloudinit/config/cc_resolv_conf.py
|
|
@@ -58,7 +58,7 @@ LOG = logging.getLogger(__name__)
|
|
|
|
frequency = PER_INSTANCE
|
|
|
|
-distros = ['fedora', 'rhel', 'sles']
|
|
+distros = ['fedora', 'opensuse', 'rhel', 'sles']
|
|
|
|
|
|
def generate_resolv_conf(template_fn, params, target_fname="/etc/resolv.conf"):
|
|
Index: cloud-init-0.7.8/cloudinit/distros/__init__.py
|
|
===================================================================
|
|
--- cloud-init-0.7.8.orig/cloudinit/distros/__init__.py
|
|
+++ cloud-init-0.7.8/cloudinit/distros/__init__.py
|
|
@@ -46,7 +46,7 @@ OSFAMILIES = {
|
|
'redhat': ['fedora', 'rhel'],
|
|
'gentoo': ['gentoo'],
|
|
'freebsd': ['freebsd'],
|
|
- 'suse': ['sles'],
|
|
+ 'suse': ['opensuse', 'sles'],
|
|
'arch': ['arch'],
|
|
}
|
|
|