Remove unused imports / variables from vyos modules (#60333)
This code is not used, lets remove it. Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
2e90efd4a7
commit
4f78b694f0
4 changed files with 1 additions and 5 deletions
|
@ -16,8 +16,6 @@ from ansible.module_utils.network.common.facts.facts import FactsBase
|
|||
from ansible.module_utils.network.vyos.facts.interfaces.interfaces import InterfacesFacts
|
||||
from ansible.module_utils.network.vyos.facts.l3_interfaces.l3_interfaces import L3_interfacesFacts
|
||||
from ansible.module_utils.network.vyos.facts.legacy.base import Default, Neighbors, Config
|
||||
from ansible.module_utils. \
|
||||
network.vyos.vyos import run_commands, get_capabilities
|
||||
|
||||
|
||||
FACT_LEGACY_SUBSETS = dict(
|
||||
|
|
|
@ -201,7 +201,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)
|
||||
|
|
|
@ -149,7 +149,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):
|
||||
|
|
|
@ -209,7 +209,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:]
|
||||
|
|
Loading…
Add table
Reference in a new issue