diff --git a/cloud-init-prefer-nm.patch b/cloud-init-prefer-nm.patch index ee589f1..7c144d0 100644 --- a/cloud-init-prefer-nm.patch +++ b/cloud-init-prefer-nm.patch @@ -13,3 +13,16 @@ "freebsd", "netbsd", "openbsd", +--- tests/unittests/test_net.py.orig ++++ tests/unittests/test_net.py +@@ -7363,8 +7363,8 @@ class TestRenderersSelect: + ("netplan", True, False, False, False, False), + # -netplan -ifupdown +sys -nm -networkd selects sysconfig + ("sysconfig", False, False, True, False, False), +- # -netplan -ifupdown +sys +nm -networkd selects sysconfig +- ("sysconfig", False, False, True, True, False), ++ # -netplan -ifupdown +sys +nm -networkd selects network-manager ++ ("network-manager", False, False, True, True, False), + # -netplan -ifupdown -sys +nm -networkd selects nm + ("network-manager", False, False, False, True, False), + # -netplan -ifupdown -sys +nm +networkd selects nm