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 Feb 2, 2024
1 parent 92760c6 commit 6877ba9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions plugins/module_utils/network/ios/config/line/line.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ def _compare_lists(self, want, have):
l1_h_entry = l1_have.pop(l1_key, {})
for c_key, c_w_entry in l1_w_entry.items():
c_h_entry = l1_h_entry.pop(
c_key, {"level": c_w_entry["level"], "command": "default"}
c_key,
{"level": c_w_entry["level"], "command": "default"},
)
self.compare(
parsers=self.parsers[l1],
Expand Down Expand Up @@ -303,6 +304,7 @@ def _list_to_dict(self, data):
for _sk, _sv in v.items():
if _sk == "commands":
l_result[_name][k][_sk] = self._convert_list_to_dict(
data=_sv, key="level"
data=_sv,
key="level",
)
return l_result
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
- name: Populate configuration
vars:
lines: "line con 0\n session-timeout 15\n login authentication limited\n escape-character 3\n stopbits 1\n
lines:
"line con 0\n session-timeout 15\n login authentication limited\n escape-character 3\n stopbits 1\n
line aux 0\n stopbits 1\n
line vty 0 4\n session-timeout 15\n exec-timeout 60 0\n password 7 02050D480809\n login authentication remote\n logging synchronous\n transport input ssh telnet"
ansible.netcommon.cli_config:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Populate configuration
vars:
lines:
lines:
"line con 0\n session-timeout 15\n login authentication limited\n escape-character 3\n stopbits 1\n
line aux 0\n stopbits 1\n no exec\n transport input ssh\n stopbits 1\n
line vty 0 4\n session-timeout 15\n exec-timeout 60 0\n password 7 02050D480809\n login authentication remote\n logging synchronous\n transport input ssh telnet"
Expand Down

0 comments on commit 6877ba9

Please sign in to comment.