We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
python3 asa_command cannot use a string pattern 
<!---
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release, and devel branch are affected too.
-->

##### ISSUE TYPE
<!--- Pick one below and delete the rest -->
 - Bug Report
 

##### COMPONENT NAME
<!---
Name of the module, plugin, task or feature
Do not include extra details here, e.g. "vyos_command" not "the network module vyos_command" or the full path
-->
asa_command
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes below -->
```
ansible 2.5.0b1
  config file = /mnt/hgfs/Share/HCS/ansible.cfg
  configured module search path = ['/home/ddean1/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/ddean1/ansible/lib/python3.5/site-packages/ansible
  executable location = /home/ddean1/ansible/bin/ansible
  python version = 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609]
```

##### CONFIGURATION
<!---
If using Ansible 2.4 or above, paste the results of "ansible-config dump --only-changed"
Otherwise, mention any settings you have changed/added/removed in ansible.cfg
(or using the ANSIBLE_* environment variables).
-->
ANSIBLE_FORCE_COLOR(/mnt/hgfs/Share/HCS/ansible.cfg) = True
ANSIBLE_SSH_ARGS(/mnt/hgfs/Share/HCS/ansible.cfg) = -o ControlMaster=auto -o ControlPersist=30s
DEFAULT_GATHERING(/mnt/hgfs/Share/HCS/ansible.cfg) = explicit
DEFAULT_HOST_LIST(/mnt/hgfs/Share/HCS/ansible.cfg) = ['/mnt/hgfs/Share/HCS/hosts']
HOST_KEY_CHECKING(/mnt/hgfs/Share/HCS/ansible.cfg) = False
RETRY_FILES_ENABLED(/mnt/hgfs/Share/HCS/ansible.cfg) = False

##### OS / ENVIRONMENT
<!---
Mention the OS you are running Ansible from, and the OS you are
managing, or say "N/A" for anything that is not platform-specific.
Also mention the specific version of what you are trying to control,
e.g. if this is a network bug the version of firmware on the network device.
-->
Cisco ASA version = 9.2(2)4

##### SUMMARY
<!--- Explain the problem briefly -->
unable to execute commands using asa_command on cisco asa
##### STEPS TO REPRODUCE
<!---
For bugs, show exactly how to reproduce the problem, using a minimal test-case.
For new features, show how the feature would be used.
-->
any basic playbook using asa_command should reproduce the issue 

<!--- Paste example playbooks or commands between quotes below -->
```yaml
- name: "ASA Health Check"
  hosts: lab_asa
  connection: local

  tasks:
    - name: "Get Running config"
      asa_command:
        commands:
          - show running-config 
        context: system
      register: output

    - debug: msg="{{ output.stdout_lines[0] }}"
```

<!--- You can also paste gist.github.com links for larger files -->

##### EXPECTED RESULTS
<!--- What did you expect to happen when running the steps above? -->
Return `show running-config` as `output` and display it in `stdout` using the debug module
##### ACTUAL RESULTS
<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->
command fails and returns `fatal: [hcs_asa_core]: FAILED! => {"failed": true, "msg": "cannot use a string pattern on a bytes-like object"}`
<!--- Paste verbatim command output between quotes below -->
```
(ansible) ddean1@DevBox ~/Share/HCS[master*]$ ansible-playbook ASA_Health_Check.yml -k -vvvv
ansible-playbook 2.5.0b1
  config file = /mnt/hgfs/Share/HCS/ansible.cfg
  configured module search path = ['/home/ddean1/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/ddean1/ansible/lib/python3.5/site-packages/ansible
  executable location = /home/ddean1/ansible/bin/ansible-playbook
  python version = 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609]
Using /mnt/hgfs/Share/HCS/ansible.cfg as config file
SSH password: 
setting up inventory plugins
Parsed /mnt/hgfs/Share/HCS/hosts inventory source with ini plugin
Loading callback plugin default of type stdout, v2.0 from /home/ddean1/ansible/lib/python3.5/site-packages/ansible/plugins/callback/default.py

PLAYBOOK: ASA_Health_Check.yml **********************************************************************************************************************************************************************************************************
1 plays in ASA_Health_Check.yml

PLAY [ASA Health Check] *****************************************************************************************************************************************************************************************************************
META: ran handlers

TASK [Get Runninf config] ***************************************************************************************************************************************************************************************************************
task path: /mnt/hgfs/Share/HCS/ASA_Health_Check.yml:6
<10.204.81.101> using connection plugin network_cli (was local)
<10.204.81.101> starting connection from persistent connection plugin
<10.204.81.101> local domain socket does not exist, starting it
<10.204.81.101> control socket path is /home/ddean1/.ansible/pc/70c4561b1e
<10.204.81.101> 
The full traceback is:
Traceback (most recent call last):
  File "/home/ddean1/ansible/bin/ansible-connection", line 70, in start
    self.connection._connect()
  File "/home/ddean1/ansible/lib/python3.5/site-packages/ansible/plugins/connection/network_cli.py", line 315, in _connect
    self.receive()
  File "/home/ddean1/ansible/lib/python3.5/site-packages/ansible/plugins/connection/network_cli.py", line 410, in receive
    if self._find_prompt(window):
  File "/home/ddean1/ansible/lib/python3.5/site-packages/ansible/plugins/connection/network_cli.py", line 481, in _find_prompt
    if regex.search(response):
TypeError: cannot use a string pattern on a bytes-like object

fatal: [hcs_asa_core]: FAILED! => {
    "failed": true,
    "msg": "cannot use a string pattern on a bytes-like object"
}

PLAY RECAP ******************************************************************************************************************************************************************************************************************************
hcs_asa_core               : ok=0    changed=0    unreachable=0    failed=1   

```


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `lib/ansible/plugins/terminal/asa.py`
Content:
```
1 #
2 # (c) 2016 Red Hat Inc.
3 #
4 # This file is part of Ansible
5 #
6 # Ansible is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # Ansible is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with Ansible.  If not, see <http://www.gnu.org/licenses/>.
18 #
19 from __future__ import (absolute_import, division, print_function)
20 __metaclass__ = type
21 
22 import re
23 import json
24 
25 from ansible.errors import AnsibleConnectionFailure
26 from ansible.module_utils._text import to_text, to_bytes
27 from ansible.plugins.terminal import TerminalBase
28 
29 
30 class TerminalModule(TerminalBase):
31 
32     terminal_stdout_re = [
33         re.compile(r"[\r\n]?[\w+\-\.:\/\[\]]+(?:\([^\)]+\)){,3}(?:>|#) ?$"),
34         re.compile(r"\[\w+\@[\w\-\.]+(?: [^\]])\] ?[>#\$] ?$")
35     ]
36 
37     terminal_stderr_re = [
38         re.compile(r"error:", re.I),
39         re.compile(br"Removing.* not allowed, it is being used")
40     ]
41 
42     def on_open_shell(self):
43         if self._get_prompt().strip().endswith(b'#'):
44             self.disable_pager()
45 
46     def disable_pager(self):
47         cmd = {u'command': u'no terminal pager'}
48         try:
49             self._exec_cli_command(u'no terminal pager')
50         except AnsibleConnectionFailure:
51             raise AnsibleConnectionFailure('unable to disable terminal pager')
52 
53     def on_become(self, passwd=None):
54         if self._get_prompt().strip().endswith(b'#'):
55             return
56 
57         cmd = {u'command': u'enable'}
58         if passwd:
59             # Note: python-3.5 cannot combine u"" and r"" together.  Thus make
60             # an r string and use to_text to ensure it's text on both py2 and py3.
61             cmd[u'prompt'] = to_text(r"[\r\n]?password: $", errors='surrogate_or_strict')
62             cmd[u'answer'] = passwd
63 
64         try:
65             self._exec_cli_command(to_bytes(json.dumps(cmd), errors='surrogate_or_strict'))
66         except AnsibleConnectionFailure:
67             raise AnsibleConnectionFailure('unable to elevate privilege to enable mode')
68 
69         self.disable_pager()
70
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/lib/ansible/plugins/terminal/asa.py b/lib/ansible/plugins/terminal/asa.py
--- a/lib/ansible/plugins/terminal/asa.py
+++ b/lib/ansible/plugins/terminal/asa.py
@@ -30,12 +30,12 @@
 class TerminalModule(TerminalBase):
 
     terminal_stdout_re = [
-        re.compile(r"[\r\n]?[\w+\-\.:\/\[\]]+(?:\([^\)]+\)){,3}(?:>|#) ?$"),
-        re.compile(r"\[\w+\@[\w\-\.]+(?: [^\]])\] ?[>#\$] ?$")
+        re.compile(br"[\r\n]?[\w+\-\.:\/\[\]]+(?:\([^\)]+\)){,3}(?:>|#) ?$"),
+        re.compile(br"\[\w+\@[\w\-\.]+(?: [^\]])\] ?[>#\$] ?$")
     ]
 
     terminal_stderr_re = [
-        re.compile(r"error:", re.I),
+        re.compile(br"error:", re.I),
         re.compile(br"Removing.* not allowed, it is being used")
     ]

{"golden_diff": "diff --git a/lib/ansible/plugins/terminal/asa.py b/lib/ansible/plugins/terminal/asa.py\n--- a/lib/ansible/plugins/terminal/asa.py\n+++ b/lib/ansible/plugins/terminal/asa.py\n@@ -30,12 +30,12 @@\n class TerminalModule(TerminalBase):\n \n     terminal_stdout_re = [\n-        re.compile(r\"[\\r\\n]?[\\w+\\-\\.:\\/\\[\\]]+(?:\\([^\\)]+\\)){,3}(?:>|#) ?$\"),\n-        re.compile(r\"\\[\\w+\\@[\\w\\-\\.]+(?: [^\\]])\\] ?[>#\\$] ?$\")\n+        re.compile(br\"[\\r\\n]?[\\w+\\-\\.:\\/\\[\\]]+(?:\\([^\\)]+\\)){,3}(?:>|#) ?$\"),\n+        re.compile(br\"\\[\\w+\\@[\\w\\-\\.]+(?: [^\\]])\\] ?[>#\\$] ?$\")\n     ]\n \n     terminal_stderr_re = [\n-        re.compile(r\"error:\", re.I),\n+        re.compile(br\"error:\", re.I),\n         re.compile(br\"Removing.* not allowed, it is being used\")\n     ]\n", "issue": "python3 asa_command cannot use a string pattern \n<!---\r\nVerify first that your issue/request is not already reported on GitHub.\r\nAlso test if the latest release, and devel branch are affected too.\r\n-->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest -->\r\n - Bug Report\r\n \r\n\r\n##### COMPONENT NAME\r\n<!---\r\nName of the module, plugin, task or feature\r\nDo not include extra details here, e.g. \"vyos_command\" not \"the network module vyos_command\" or the full path\r\n-->\r\nasa_command\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from \"ansible --version\" between quotes below -->\r\n```\r\nansible 2.5.0b1\r\n  config file = /mnt/hgfs/Share/HCS/ansible.cfg\r\n  configured module search path = ['/home/ddean1/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /home/ddean1/ansible/lib/python3.5/site-packages/ansible\r\n  executable location = /home/ddean1/ansible/bin/ansible\r\n  python version = 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609]\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\nIf using Ansible 2.4 or above, paste the results of \"ansible-config dump --only-changed\"\r\nOtherwise, mention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).\r\n-->\r\nANSIBLE_FORCE_COLOR(/mnt/hgfs/Share/HCS/ansible.cfg) = True\r\nANSIBLE_SSH_ARGS(/mnt/hgfs/Share/HCS/ansible.cfg) = -o ControlMaster=auto -o ControlPersist=30s\r\nDEFAULT_GATHERING(/mnt/hgfs/Share/HCS/ansible.cfg) = explicit\r\nDEFAULT_HOST_LIST(/mnt/hgfs/Share/HCS/ansible.cfg) = ['/mnt/hgfs/Share/HCS/hosts']\r\nHOST_KEY_CHECKING(/mnt/hgfs/Share/HCS/ansible.cfg) = False\r\nRETRY_FILES_ENABLED(/mnt/hgfs/Share/HCS/ansible.cfg) = False\r\n\r\n##### OS / ENVIRONMENT\r\n<!---\r\nMention the OS you are running Ansible from, and the OS you are\r\nmanaging, or say \"N/A\" for anything that is not platform-specific.\r\nAlso mention the specific version of what you are trying to control,\r\ne.g. if this is a network bug the version of firmware on the network device.\r\n-->\r\nCisco ASA version = 9.2(2)4\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nunable to execute commands using asa_command on cisco asa\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nFor bugs, show exactly how to reproduce the problem, using a minimal test-case.\r\nFor new features, show how the feature would be used.\r\n-->\r\nany basic playbook using asa_command should reproduce the issue \r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```yaml\r\n- name: \"ASA Health Check\"\r\n  hosts: lab_asa\r\n  connection: local\r\n\r\n  tasks:\r\n    - name: \"Get Running config\"\r\n      asa_command:\r\n        commands:\r\n          - show running-config \r\n        context: system\r\n      register: output\r\n\r\n    - debug: msg=\"{{ output.stdout_lines[0] }}\"\r\n```\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- What did you expect to happen when running the steps above? -->\r\nReturn `show running-config` as `output` and display it in `stdout` using the debug module\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\ncommand fails and returns `fatal: [hcs_asa_core]: FAILED! => {\"failed\": true, \"msg\": \"cannot use a string pattern on a bytes-like object\"}`\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\n(ansible) ddean1@DevBox ~/Share/HCS[master*]$ ansible-playbook ASA_Health_Check.yml -k -vvvv\r\nansible-playbook 2.5.0b1\r\n  config file = /mnt/hgfs/Share/HCS/ansible.cfg\r\n  configured module search path = ['/home/ddean1/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /home/ddean1/ansible/lib/python3.5/site-packages/ansible\r\n  executable location = /home/ddean1/ansible/bin/ansible-playbook\r\n  python version = 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609]\r\nUsing /mnt/hgfs/Share/HCS/ansible.cfg as config file\r\nSSH password: \r\nsetting up inventory plugins\r\nParsed /mnt/hgfs/Share/HCS/hosts inventory source with ini plugin\r\nLoading callback plugin default of type stdout, v2.0 from /home/ddean1/ansible/lib/python3.5/site-packages/ansible/plugins/callback/default.py\r\n\r\nPLAYBOOK: ASA_Health_Check.yml **********************************************************************************************************************************************************************************************************\r\n1 plays in ASA_Health_Check.yml\r\n\r\nPLAY [ASA Health Check] *****************************************************************************************************************************************************************************************************************\r\nMETA: ran handlers\r\n\r\nTASK [Get Runninf config] ***************************************************************************************************************************************************************************************************************\r\ntask path: /mnt/hgfs/Share/HCS/ASA_Health_Check.yml:6\r\n<10.204.81.101> using connection plugin network_cli (was local)\r\n<10.204.81.101> starting connection from persistent connection plugin\r\n<10.204.81.101> local domain socket does not exist, starting it\r\n<10.204.81.101> control socket path is /home/ddean1/.ansible/pc/70c4561b1e\r\n<10.204.81.101> \r\nThe full traceback is:\r\nTraceback (most recent call last):\r\n  File \"/home/ddean1/ansible/bin/ansible-connection\", line 70, in start\r\n    self.connection._connect()\r\n  File \"/home/ddean1/ansible/lib/python3.5/site-packages/ansible/plugins/connection/network_cli.py\", line 315, in _connect\r\n    self.receive()\r\n  File \"/home/ddean1/ansible/lib/python3.5/site-packages/ansible/plugins/connection/network_cli.py\", line 410, in receive\r\n    if self._find_prompt(window):\r\n  File \"/home/ddean1/ansible/lib/python3.5/site-packages/ansible/plugins/connection/network_cli.py\", line 481, in _find_prompt\r\n    if regex.search(response):\r\nTypeError: cannot use a string pattern on a bytes-like object\r\n\r\nfatal: [hcs_asa_core]: FAILED! => {\r\n    \"failed\": true,\r\n    \"msg\": \"cannot use a string pattern on a bytes-like object\"\r\n}\r\n\r\nPLAY RECAP ******************************************************************************************************************************************************************************************************************************\r\nhcs_asa_core               : ok=0    changed=0    unreachable=0    failed=1   \r\n\r\n```\r\n\n", "before_files": [{"content": "#\n# (c) 2016 Red Hat Inc.\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version.\n#\n# Ansible is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with Ansible.  If not, see <http://www.gnu.org/licenses/>.\n#\nfrom __future__ import (absolute_import, division, print_function)\n__metaclass__ = type\n\nimport re\nimport json\n\nfrom ansible.errors import AnsibleConnectionFailure\nfrom ansible.module_utils._text import to_text, to_bytes\nfrom ansible.plugins.terminal import TerminalBase\n\n\nclass TerminalModule(TerminalBase):\n\n    terminal_stdout_re = [\n        re.compile(r\"[\\r\\n]?[\\w+\\-\\.:\\/\\[\\]]+(?:\\([^\\)]+\\)){,3}(?:>|#) ?$\"),\n        re.compile(r\"\\[\\w+\\@[\\w\\-\\.]+(?: [^\\]])\\] ?[>#\\$] ?$\")\n    ]\n\n    terminal_stderr_re = [\n        re.compile(r\"error:\", re.I),\n        re.compile(br\"Removing.* not allowed, it is being used\")\n    ]\n\n    def on_open_shell(self):\n        if self._get_prompt().strip().endswith(b'#'):\n            self.disable_pager()\n\n    def disable_pager(self):\n        cmd = {u'command': u'no terminal pager'}\n        try:\n            self._exec_cli_command(u'no terminal pager')\n        except AnsibleConnectionFailure:\n            raise AnsibleConnectionFailure('unable to disable terminal pager')\n\n    def on_become(self, passwd=None):\n        if self._get_prompt().strip().endswith(b'#'):\n            return\n\n        cmd = {u'command': u'enable'}\n        if passwd:\n            # Note: python-3.5 cannot combine u\"\" and r\"\" together.  Thus make\n            # an r string and use to_text to ensure it's text on both py2 and py3.\n            cmd[u'prompt'] = to_text(r\"[\\r\\n]?password: $\", errors='surrogate_or_strict')\n            cmd[u'answer'] = passwd\n\n        try:\n            self._exec_cli_command(to_bytes(json.dumps(cmd), errors='surrogate_or_strict'))\n        except AnsibleConnectionFailure:\n            raise AnsibleConnectionFailure('unable to elevate privilege to enable mode')\n\n        self.disable_pager()\n", "path": "lib/ansible/plugins/terminal/asa.py"}], "after_files": [{"content": "#\n# (c) 2016 Red Hat Inc.\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version.\n#\n# Ansible is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with Ansible.  If not, see <http://www.gnu.org/licenses/>.\n#\nfrom __future__ import (absolute_import, division, print_function)\n__metaclass__ = type\n\nimport re\nimport json\n\nfrom ansible.errors import AnsibleConnectionFailure\nfrom ansible.module_utils._text import to_text, to_bytes\nfrom ansible.plugins.terminal import TerminalBase\n\n\nclass TerminalModule(TerminalBase):\n\n    terminal_stdout_re = [\n        re.compile(br\"[\\r\\n]?[\\w+\\-\\.:\\/\\[\\]]+(?:\\([^\\)]+\\)){,3}(?:>|#) ?$\"),\n        re.compile(br\"\\[\\w+\\@[\\w\\-\\.]+(?: [^\\]])\\] ?[>#\\$] ?$\")\n    ]\n\n    terminal_stderr_re = [\n        re.compile(br\"error:\", re.I),\n        re.compile(br\"Removing.* not allowed, it is being used\")\n    ]\n\n    def on_open_shell(self):\n        if self._get_prompt().strip().endswith(b'#'):\n            self.disable_pager()\n\n    def disable_pager(self):\n        cmd = {u'command': u'no terminal pager'}\n        try:\n            self._exec_cli_command(u'no terminal pager')\n        except AnsibleConnectionFailure:\n            raise AnsibleConnectionFailure('unable to disable terminal pager')\n\n    def on_become(self, passwd=None):\n        if self._get_prompt().strip().endswith(b'#'):\n            return\n\n        cmd = {u'command': u'enable'}\n        if passwd:\n            # Note: python-3.5 cannot combine u\"\" and r\"\" together.  Thus make\n            # an r string and use to_text to ensure it's text on both py2 and py3.\n            cmd[u'prompt'] = to_text(r\"[\\r\\n]?password: $\", errors='surrogate_or_strict')\n            cmd[u'answer'] = passwd\n\n        try:\n            self._exec_cli_command(to_bytes(json.dumps(cmd), errors='surrogate_or_strict'))\n        except AnsibleConnectionFailure:\n            raise AnsibleConnectionFailure('unable to elevate privilege to enable mode')\n\n        self.disable_pager()\n", "path": "lib/ansible/plugins/terminal/asa.py"}]}