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

@ -186,7 +186,7 @@ class Connection(NetworkConnectionBase):
self.napalm.open()
self._implementation_plugins.append(self.napalm)
self._sub_plugins.append({'type': 'external', 'name': 'napalm', 'obj': self.napalm})
display.vvvv('created napalm device for network_os %s' % self._network_os, host=host)
self._connected = True