mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
Add ios changes for Python3 (#24601)
* Add ios changes for Python3 Make `execute_command` arguments and its return value complaint to PY3 changes made in PR #24431 pep8 fixes * Fix CI issues * Fix review comment
This commit is contained in:
parent
3eb8142a41
commit
38eeeb755d
3 changed files with 18 additions and 12 deletions
|
@ -23,7 +23,7 @@ import json
|
|||
import re
|
||||
|
||||
from ansible.errors import AnsibleConnectionFailure
|
||||
from ansible.module_utils._text import to_bytes
|
||||
from ansible.module_utils._text import to_text, to_bytes
|
||||
from ansible.plugins.terminal import TerminalBase
|
||||
|
||||
|
||||
|
@ -36,7 +36,7 @@ class TerminalModule(TerminalBase):
|
|||
|
||||
terminal_stderr_re = [
|
||||
re.compile(br"% ?Error"),
|
||||
#re.compile(br"^% \w+", re.M),
|
||||
# re.compile(br"^% \w+", re.M),
|
||||
re.compile(br"% ?Bad secret"),
|
||||
re.compile(br"invalid input", re.I),
|
||||
re.compile(br"(?:incomplete|ambiguous) command", re.I),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue