Skip to content

Commit

Permalink
chore: auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 11, 2024
1 parent e9f69e0 commit c871274
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions tests/unit/modules/network/nxos/test_nxos_vrf_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c871274

Please sign in to comment.