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:
Nathaniel Case 2018-09-20 09:56:43 -04:00 committed by GitHub
commit 406b59aeba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 98 additions and 109 deletions

View file

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