← Back to team overview

cloud-init-dev team mailing list archive

[Merge] ~smoser/cloud-init:fix-test_netconfig into cloud-init:master

 

Scott Moser has proposed merging ~smoser/cloud-init:fix-test_netconfig into cloud-init:master.

Requested reviews:
  cloud init development team (cloud-init-dev)

For more details, see:
https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/320495
-- 
Your team cloud init development team is requested to review the proposed merge of ~smoser/cloud-init:fix-test_netconfig into cloud-init:master.
diff --git a/tests/unittests/test_distros/test_netconfig.py b/tests/unittests/test_distros/test_netconfig.py
index b89b74f..8837066 100644
--- a/tests/unittests/test_distros/test_netconfig.py
+++ b/tests/unittests/test_distros/test_netconfig.py
@@ -236,6 +236,9 @@ class TestNetCfgDistro(TestCase):
                 mock.patch.object(util, 'write_file', replace_write))
             mocks.enter_context(
                 mock.patch.object(os.path, 'isfile', return_value=False))
+            mocks.enter_context(
+                mock.patch("cloudinit.net.eni.glob.glob",
+                           return_value=[]))
 
             ub_distro.apply_network_config(V1_NET_CFG, False)