The initial fix is easy, but bug 1621615 changes sneaked in without a unit test.
I'd really like a unit test of read_kernel_cmdline_config to accompany this change.
Also, a change to 'DHCP6_CONTENT_1' in tests/unittests/test_net.py to contain what we're currently expecting.
The initial fix is easy, but bug 1621615 changes sneaked in without a unit test.
I'd really like a unit test of read_kernel_ cmdline_ config to accompany this change. /test_net. py to contain what we're currently expecting.
Also, a change to 'DHCP6_CONTENT_1' in tests/unittests
diff --git a/cloudinit/ net/cmdline. py b/cloudinit/ net/cmdline. py net/cmdline. py net/cmdline. py cmdline_ config( files=None, mac_addrs=None, cmdline=None): yaml(_b64dgz( data64) )
index 4075a27..a077730 100644
--- a/cloudinit/
+++ b/cloudinit/
@@ -199,7 +199,7 @@ def read_kernel_
if data64:
return util.load_
- if 'ip=' not in cmdline:
+ if 'ip=' not in cmdline and 'ip6=' not in cmdline:
return None