From c841cad0ea6013aab5a0c5620d3b40d72ef5afc0 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Fri, 9 Aug 2019 14:03:18 -0400 Subject: Add tox.ini file Create a tox.ini file with linters entry point for developers to run linters locally. Signed-off-by: Paul Belanger --- plugins/module_utils/network/vyos/facts/facts.py | 5 ----- plugins/modules/vyos_system.py | 2 +- plugins/modules/vyos_user.py | 1 - plugins/modules/vyos_vlan.py | 2 -- 4 files changed, 1 insertion(+), 9 deletions(-) (limited to 'plugins') diff --git a/plugins/module_utils/network/vyos/facts/facts.py b/plugins/module_utils/network/vyos/facts/facts.py index fcb6bf0f..eae9489f 100644 --- a/plugins/module_utils/network/vyos/facts/facts.py +++ b/plugins/module_utils/network/vyos/facts/facts.py @@ -31,11 +31,6 @@ from ansible_collections.vyos.vyos.plugins.module_utils.network.vyos.facts.legac Config, ) -from ansible.module_utils.network.vyos.vyos import ( - run_commands, - get_capabilities, -) - FACT_LEGACY_SUBSETS = dict(default=Default, neighbors=Neighbors, config=Config) FACT_RESOURCE_SUBSETS = dict( diff --git a/plugins/modules/vyos_system.py b/plugins/modules/vyos_system.py index 4f0d5db7..3f306f8a 100644 --- a/plugins/modules/vyos_system.py +++ b/plugins/modules/vyos_system.py @@ -215,7 +215,7 @@ def main(): if commands: commit = not module.check_mode - response = load_config(module, commands, commit=commit) + load_config(module, commands, commit=commit) result["changed"] = True module.exit_json(**result) diff --git a/plugins/modules/vyos_user.py b/plugins/modules/vyos_user.py index a309d2a5..2bccd494 100644 --- a/plugins/modules/vyos_user.py +++ b/plugins/modules/vyos_user.py @@ -159,7 +159,6 @@ def validate_level(value, module): def spec_to_commands(updates, module): commands = list() - state = module.params["state"] update_password = module.params["update_password"] def needs_update(want, have, x): diff --git a/plugins/modules/vyos_vlan.py b/plugins/modules/vyos_vlan.py index 7c3fa69d..6c0fad8c 100644 --- a/plugins/modules/vyos_vlan.py +++ b/plugins/modules/vyos_vlan.py @@ -153,7 +153,6 @@ def map_obj_to_commands(updates, module): name = w["name"] address = w["address"] state = w["state"] - interfaces = w["interfaces"] obj_in_have = search_obj_in_list(vlan_id, have) @@ -236,7 +235,6 @@ def map_params_to_obj(module): def map_config_to_obj(module): objs = [] - interfaces = list() output = run_commands(module, "show interfaces") lines = output[0].strip().splitlines()[3:] -- cgit v1.2.3