mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07:00
fixes asa action plugin for connection=local (#32827)
* fixes asa action plugin for connection=local This change fixes asa modules when using connection=local to load the provider values. * fix up pep8 issues
This commit is contained in:
parent
b70e48a54d
commit
b9bdb05459
4 changed files with 34 additions and 34 deletions
|
@ -302,6 +302,8 @@ class Connection(ConnectionBase):
|
|||
A carriage return is automatically appended to this string.
|
||||
:returns: True if a prompt was found in ``resp``. False otherwise
|
||||
'''
|
||||
if not isinstance(prompts, list):
|
||||
prompts = [prompts]
|
||||
prompts = [re.compile(r, re.I) for r in prompts]
|
||||
for regex in prompts:
|
||||
match = regex.search(resp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue