summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2017-02-07 14:19:16 -0800
committerMatt Clay <matt@mystile.com>2017-02-07 15:21:34 -0800
commit189fee48539b405357cf43145c4c4f96923ac006 (patch)
tree3a7d581b43953ac2691d0d0a350322a27724160e /test
parentd12e9f574898661f4ff65e962e755e77d5d00b00 (diff)
downloadansible-189fee48539b405357cf43145c4c4f96923ac006.tar.gz
Fix vyos unit tests.
Diffstat (limited to 'test')
-rw-r--r--test/units/modules/network/vyos/test_vyos_system.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/units/modules/network/vyos/test_vyos_system.py b/test/units/modules/network/vyos/test_vyos_system.py
index da0f5b0fc6..6dc4defcf2 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):