Skip to content

Commit

Permalink
Added extra error regex
Browse files Browse the repository at this point in the history
  • Loading branch information
roverflow committed Oct 12, 2023
1 parent d8e61f8 commit df80327
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/error_parser_bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- "Fix invalid password length not being recognized by the error parser."
3 changes: 0 additions & 3 deletions changelogs/fragments/ios_user_bug.yml

This file was deleted.

2 changes: 1 addition & 1 deletion plugins/modules/ios_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def add_ssh(command, want, x=None):
if needs_update(want, have, "sshkey"):
add_ssh(commands, want, want["sshkey"])
if needs_update(want, have, "configured_password"):
if update_password == "always" or not have["configured_password"]:
if update_password == "always" or not have:
if have and have["password_type"] and password_type != have["password_type"]:
module.fail_json(
msg="Can not have both a user password and a user secret."
Expand Down
1 change: 1 addition & 0 deletions plugins/terminal/ios.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class TerminalModule(TerminalBase):
re.compile(rb"% General session commands not allowed under the address family", re.I),
re.compile(rb"% BGP: Error initializing topology", re.I),
re.compile(rb"%SNMP agent not enabled", re.I),
re.compile(rb"% Invalid", re.I),
]

terminal_config_prompt = re.compile(r"^.+\(config(-.*)?\)#$")
Expand Down

0 comments on commit df80327

Please sign in to comment.