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

@ -58,7 +58,7 @@ class TerminalModule(TerminalBase):
if passwd:
# Note: python-3.5 cannot combine u"" and r"" together. Thus make
# an r string and use to_text to ensure it's text on both py2 and py3.
cmd[u'prompt'] = to_text(r"[\r\n]?password: $", errors='surrogate_or_strict')
cmd[u'prompts'] = to_text(r"[\r\n]?password: $", errors='surrogate_or_strict')
cmd[u'answer'] = passwd
try: