From fed23d2f31245c696987798ae009fcbed5390817 Mon Sep 17 00:00:00 2001 From: Senthil Kumar Ganesan Date: Wed, 31 Aug 2016 14:39:16 -0700 Subject: [PATCH] Cleaned up the module imports --- lib/ansible/modules/network/dnos10/dnos10_command.py | 4 +++- lib/ansible/modules/network/dnos10/dnos10_config.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/network/dnos10/dnos10_command.py b/lib/ansible/modules/network/dnos10/dnos10_command.py index fd068ffc2e..2d68e691c5 100644 --- a/lib/ansible/modules/network/dnos10/dnos10_command.py +++ b/lib/ansible/modules/network/dnos10/dnos10_command.py @@ -131,9 +131,11 @@ warnings: type: list sample: ['...', '...'] """ + from ansible.module_utils.basic import get_exception from ansible.module_utils.netcli import CommandRunner, FailedConditionsError -from ansible.module_utils.dnos10 import NetworkModule, NetworkError +from ansible.module_utils.network import NetworkModule, NetworkError +import ansible.module_utils.dnos10 def to_lines(stdout): for item in stdout: diff --git a/lib/ansible/modules/network/dnos10/dnos10_config.py b/lib/ansible/modules/network/dnos10/dnos10_config.py index 26e731aa17..8aa64c973d 100644 --- a/lib/ansible/modules/network/dnos10/dnos10_config.py +++ b/lib/ansible/modules/network/dnos10/dnos10_config.py @@ -188,8 +188,8 @@ saved: sample: True """ -from ansible.module_utils.netcfg import NetworkConfig, dumps, ConfigLine -from ansible.module_utils.dnos10 import NetworkModule +from ansible.module_utils.netcfg import NetworkConfig, dumps +from ansible.module_utils.network import NetworkModule from ansible.module_utils.dnos10 import get_config, get_sublevel_config def get_candidate(module):