Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 11, 2023
1 parent 289b711 commit 48b189d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ ip access-list test
10 permit ip 192.0.2.1/32 any log
20 permit ip 192.0.2.2/32 any log
30 permit ip 192.0.2.3/32 any log
40 permit ip 192.0.2.4/32 any log
40 permit ip 192.0.2.4/32 any log
5 changes: 2 additions & 3 deletions tests/unit/modules/network/nxos/test_nxos_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ def test_nxos_config_parents(self):
]

self.assertEqual(config, result["commands"], result["commands"])


def test_nxos_replace_block_src(self):
src = load_fixture("nxos_config", "candidate.cfg")
Expand All @@ -200,7 +199,7 @@ def test_nxos_replace_block_src(self):
]

self.assertEqual(sorted(config), sorted(result["commands"]), result["commands"])

def test_nxos_replace_block_lines(self):
lines = ["ip address 1.2.3.4/5", "no shutdown"]
parents = ["interface Ethernet10"]
Expand Down Expand Up @@ -242,7 +241,7 @@ def test_nxos_config_match_strict_requires_lines(self):
args = dict(match="strict")
set_module_args(args)
result = self.execute_module(failed=True)

def test_nxos_config_replace_block_requires_lines_or_src(self):
args = dict(replace="block")
set_module_args(args)
Expand Down

0 comments on commit 48b189d

Please sign in to comment.