mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-12 19:29:11 -07:00
Allow persistent connection plugins to queue messages back to ansible-connection (#49977)
* Connections can queue messages to be returned from ansible-connection * Provide fallback for invalid display level * Strip display from plugins * Route messages through helper method to try to avoid improper appends
This commit is contained in:
parent
49993a55e5
commit
1829a72885
13 changed files with 75 additions and 83 deletions
|
@ -27,7 +27,6 @@ from ansible.module_utils._text import to_text, to_bytes, to_native
|
|||
from ansible.errors import AnsibleConnectionFailure, AnsibleError
|
||||
from ansible.plugins.netconf import NetconfBase
|
||||
from ansible.plugins.netconf import ensure_connected
|
||||
from ansible.utils.display import Display
|
||||
|
||||
try:
|
||||
from ncclient import manager
|
||||
|
@ -37,8 +36,6 @@ try:
|
|||
except ImportError:
|
||||
raise AnsibleError("ncclient is not installed")
|
||||
|
||||
display = Display()
|
||||
|
||||
|
||||
class Netconf(NetconfBase):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue