mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-30 04:49:09 -07:00
module_utils_fix_dellos6 (#28060)
This commit is contained in:
parent
c0000bc722
commit
adc533804a
2 changed files with 8 additions and 4 deletions
|
@ -48,7 +48,7 @@ class TerminalModule(TerminalBase):
|
|||
|
||||
cmd = {u'command': u'enable'}
|
||||
if passwd:
|
||||
cmd[u'prompt'] = to_text(r"[\r\n]?password: $", errors='surrogate_or_strict')
|
||||
cmd[u'prompt'] = to_text(r"[\r\n]?password:$", errors='surrogate_or_strict')
|
||||
cmd[u'answer'] = passwd
|
||||
try:
|
||||
self._exec_cli_command(to_bytes(json.dumps(cmd), errors='surrogate_or_strict'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue