diff --git a/lib/ansible/modules/network/nxos/nxos_ping.py b/lib/ansible/modules/network/nxos/nxos_ping.py index be4e0239764..d0f19acd2c1 100644 --- a/lib/ansible/modules/network/nxos/nxos_ping.py +++ b/lib/ansible/modules/network/nxos/nxos_ping.py @@ -188,8 +188,6 @@ def main(): module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True) - warnings = list() - destination = module.params['dest'] state = module.params['state'] diff --git a/lib/ansible/modules/network/nxos/nxos_snapshot.py b/lib/ansible/modules/network/nxos/nxos_snapshot.py index 3acdef6c03c..e1ca5ad75d7 100644 --- a/lib/ansible/modules/network/nxos/nxos_snapshot.py +++ b/lib/ansible/modules/network/nxos/nxos_snapshot.py @@ -321,8 +321,6 @@ def main(): required_if=required_if, supports_check_mode=True) - warnings = list() - action = module.params['action'] comparison_results_file = module.params['comparison_results_file']