summaryrefslogtreecommitdiff
path: root/cloudinit/net
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2019-04-27 02:40:47 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2019-04-27 02:40:47 +0000
commit784d3300f213c78d197a7ac8ad42cb098fd82356 (patch)
treee5ceea016fe230287b766528f971cee64f055bed /cloudinit/net
parent3fb55ea85139f2d29ce32f124d099419fbd06f60 (diff)
downloadvyos-cloud-init-784d3300f213c78d197a7ac8ad42cb098fd82356.tar.gz
vyos-cloud-init-784d3300f213c78d197a7ac8ad42cb098fd82356.zip
git tests: no longer show warning about safe yaml.
Currently on 18.04, running tox -e py27 will spew errors like: .tests/unittests/test_net.py:2649: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. The change here just uses cloud-init's yaml, which does safeloading by default.
Diffstat (limited to 'cloudinit/net')
-rw-r--r--cloudinit/net/tests/test_init.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/net/tests/test_init.py b/cloudinit/net/tests/test_init.py
index f55c31e8..6d2affe7 100644
--- a/cloudinit/net/tests/test_init.py
+++ b/cloudinit/net/tests/test_init.py
@@ -7,11 +7,11 @@ import mock
import os
import requests
import textwrap
-import yaml
import cloudinit.net as net
from cloudinit.util import ensure_file, write_file, ProcessExecutionError
from cloudinit.tests.helpers import CiTestCase, HttprettyTestCase
+from cloudinit import safeyaml as yaml
class TestSysDevPath(CiTestCase):