From c87127444eab38b59f0df9f73f59a1f614ae9ed5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 17:27:53 +0000 Subject: [PATCH] chore: auto fixes from pre-commit.com hooks --- .../network/nxos/facts/vrf_interfaces/vrf_interfaces.py | 6 ++++-- tests/unit/modules/network/nxos/test_nxos_vrf_interfaces.py | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/module_utils/network/nxos/facts/vrf_interfaces/vrf_interfaces.py b/plugins/module_utils/network/nxos/facts/vrf_interfaces/vrf_interfaces.py index 41155c0a5..71a2e1f6f 100644 --- a/plugins/module_utils/network/nxos/facts/vrf_interfaces/vrf_interfaces.py +++ b/plugins/module_utils/network/nxos/facts/vrf_interfaces/vrf_interfaces.py @@ -60,11 +60,13 @@ def populate_facts(self, connection, ansible_facts, data=None): params = utils.remove_empties( vrf_interfaces_parser.validate_config( - self.argument_spec, {"config": objs}, redact=True + self.argument_spec, + {"config": objs}, + redact=True, ), ) facts["vrf_interfaces"] = params.get("config", []) - ansible_facts['ansible_network_resources'].update(facts) + ansible_facts["ansible_network_resources"].update(facts) return ansible_facts diff --git a/tests/unit/modules/network/nxos/test_nxos_vrf_interfaces.py b/tests/unit/modules/network/nxos/test_nxos_vrf_interfaces.py index 77ebc5f48..a9bb8860a 100644 --- a/tests/unit/modules/network/nxos/test_nxos_vrf_interfaces.py +++ b/tests/unit/modules/network/nxos/test_nxos_vrf_interfaces.py @@ -23,11 +23,13 @@ from unittest.mock import patch from ansible_collections.cisco.nxos.plugins.modules import nxos_vrf_interfaces + from .nxos_module import TestNxosModule, set_module_args class TestNxosVrfInterfacesModule(TestNxosModule): """Test the nxos_vrf_interfaces module.""" + module = nxos_vrf_interfaces def setUp(self):