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:
Peter Sprygada 2017-11-13 14:24:13 -05:00 committed by Nathaniel Case
parent b70e48a54d
commit b9bdb05459
4 changed files with 34 additions and 34 deletions

View file

@ -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)