SHA256
1
0
forked from pool/cloud-init
cloud-init/cloud-init-renderer-detect.patch
Robert Schweikert 0e6e7e2b35 - Add cloud-init-renderer-detect.patch (bsc#1154092)
+ Short curcuit the conditional for identifying the sysconfig renderer.
    If we find ifup/ifdown accept the renderer as available.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=151
2019-10-22 20:01:12 +00:00

12 lines
376 B
Diff

--- cloudinit/net/sysconfig.py.orig
+++ cloudinit/net/sysconfig.py
@@ -758,6 +758,8 @@ def available_sysconfig(target=None):
for p in expected:
if not util.which(p, search=search, target=target):
return False
+ else:
+ return True
expected_paths = ['etc/sysconfig/network/scripts/functions.netconfig']
for p in expected_paths: