mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -07:00
Move persistent connections to only use registered variables (#45616)
* Try to intuit proper plugins to send to ansible-connection * Move sub-plugins to init so that vars will be populated in executor * Fix connection unit tests
This commit is contained in:
parent
86c48205c4
commit
406b59aeba
10 changed files with 98 additions and 109 deletions
|
@ -102,7 +102,10 @@ class NetconfBase(AnsiblePlugin):
|
|||
|
||||
def __init__(self, connection):
|
||||
self._connection = connection
|
||||
self.m = self._connection._manager
|
||||
|
||||
@property
|
||||
def m(self):
|
||||
return self._connection._manager
|
||||
|
||||
@ensure_connected
|
||||
def rpc(self, name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue