From 189fee48539b405357cf43145c4c4f96923ac006 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 7 Feb 2017 14:19:16 -0800 Subject: [PATCH] Fix vyos unit tests. --- test/units/modules/network/vyos/test_vyos_system.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/units/modules/network/vyos/test_vyos_system.py b/test/units/modules/network/vyos/test_vyos_system.py index da0f5b0fc6e..6dc4defcf24 100644 --- a/test/units/modules/network/vyos/test_vyos_system.py +++ b/test/units/modules/network/vyos/test_vyos_system.py @@ -30,6 +30,7 @@ from ansible.compat.tests.mock import patch, MagicMock from ansible.errors import AnsibleModuleExit from ansible.modules.network.vyos import vyos_system from ansible.module_utils._text import to_bytes +from ansible.module_utils import basic fixture_path = os.path.join(os.path.dirname(__file__), 'fixtures') @@ -38,7 +39,7 @@ fixture_data = {} def set_module_args(args): json_args = json.dumps({'ANSIBLE_MODULE_ARGS': args}) - ansible.module_utils.basic._ANSIBLE_ARGS = to_bytes(json_args) + basic._ANSIBLE_ARGS = to_bytes(json_args) def load_fixture(name):