mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00: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:
committed by
Nathaniel Case
parent
b70e48a54d
commit
b9bdb05459
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user