From 493dda94e978497b874a9cc0afb62a3c1cee5853 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Tue, 18 Feb 2020 17:49:49 -0500 Subject: [PATCH] Remove unused imports for vyos (#67550) These flake8 errors would caught in our collection testing. Signed-off-by: Paul Belanger --- .../network/vyos/config/firewall_rules/firewall_rules.py | 2 +- .../network/vyos/config/static_routes/static_routes.py | 2 +- test/units/modules/network/vyos/test_vyos_firewall_rules.py | 2 +- test/units/modules/network/vyos/test_vyos_static_routes.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ansible/module_utils/network/vyos/config/firewall_rules/firewall_rules.py b/lib/ansible/module_utils/network/vyos/config/firewall_rules/firewall_rules.py index 973846cfbc5..38ee047e54c 100644 --- a/lib/ansible/module_utils/network/vyos/config/firewall_rules/firewall_rules.py +++ b/lib/ansible/module_utils/network/vyos/config/firewall_rules/firewall_rules.py @@ -15,7 +15,7 @@ __metaclass__ = type from copy import deepcopy from ansible.module_utils.network.common.cfg.base import ConfigBase -from ansible.module_utils.network.common.utils import to_list, dict_diff, remove_empties +from ansible.module_utils.network.common.utils import to_list, remove_empties from ansible.module_utils.network.vyos.facts.facts import Facts from ansible.module_utils.six import iteritems from ansible.module_utils.network.vyos.utils.utils import list_diff_want_only diff --git a/lib/ansible/module_utils/network/vyos/config/static_routes/static_routes.py b/lib/ansible/module_utils/network/vyos/config/static_routes/static_routes.py index 786d26057d2..d60b457ce7a 100644 --- a/lib/ansible/module_utils/network/vyos/config/static_routes/static_routes.py +++ b/lib/ansible/module_utils/network/vyos/config/static_routes/static_routes.py @@ -19,7 +19,7 @@ from ansible.module_utils.network.common.utils import to_list, dict_diff, remove from ansible.module_utils.network.vyos.facts.facts import Facts from ansible.module_utils.six import iteritems from ansible.module_utils.network. vyos.utils.utils import get_route_type, \ - diff_list_of_dicts, get_lst_diff_for_dicts, get_lst_same_for_dicts, dict_delete + get_lst_diff_for_dicts, get_lst_same_for_dicts, dict_delete class Static_routes(ConfigBase): diff --git a/test/units/modules/network/vyos/test_vyos_firewall_rules.py b/test/units/modules/network/vyos/test_vyos_firewall_rules.py index ebf8d44a8e8..5dc6eaa474f 100644 --- a/test/units/modules/network/vyos/test_vyos_firewall_rules.py +++ b/test/units/modules/network/vyos/test_vyos_firewall_rules.py @@ -19,7 +19,7 @@ from __future__ import (absolute_import, division, print_function) __metaclass__ = type -from units.compat.mock import patch, MagicMock +from units.compat.mock import patch from ansible.modules.network.vyos import vyos_firewall_rules from units.modules.utils import set_module_args from .vyos_module import TestVyosModule, load_fixture diff --git a/test/units/modules/network/vyos/test_vyos_static_routes.py b/test/units/modules/network/vyos/test_vyos_static_routes.py index 209d407c2e0..a2882c32d70 100644 --- a/test/units/modules/network/vyos/test_vyos_static_routes.py +++ b/test/units/modules/network/vyos/test_vyos_static_routes.py @@ -19,7 +19,7 @@ from __future__ import (absolute_import, division, print_function) __metaclass__ = type -from units.compat.mock import patch, MagicMock +from units.compat.mock import patch from ansible.modules.network.vyos import vyos_static_routes from units.modules.utils import set_module_args from .vyos_module import TestVyosModule, load_fixture