diff options
author | Nathaniel Case <ncase@redhat.com> | 2020-12-04 16:37:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-04 15:37:55 -0600 |
commit | a4ba6ace019e87a89928dc6102b0861ae266e52f (patch) | |
tree | 0a815e2009da9166257aa9e7bd6abed693976745 /lib | |
parent | 903f2e267b9e434b4b9acb7adc71e6a1814f0d72 (diff) | |
download | ansible-a4ba6ace019e87a89928dc6102b0861ae266e52f.tar.gz |
Update ssh connection play_context alongside network_cli's (#72185)
Backport of https://github.com/ansible-collections/ansible.netcommon/pull/135
* Fix iosxr tests
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ansible/plugins/connection/network_cli.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ansible/plugins/connection/network_cli.py b/lib/ansible/plugins/connection/network_cli.py index 52add31c97..d7ca6c8c90 100644 --- a/lib/ansible/plugins/connection/network_cli.py +++ b/lib/ansible/plugins/connection/network_cli.py @@ -418,6 +418,8 @@ class Connection(NetworkConnectionBase): self.queue_message('vvvv', 'deauthorizing connection') self._play_context = play_context + if self._paramiko_conn is not None: + self._paramiko_conn._play_context = play_context if hasattr(self, 'reset_history'): self.reset_history() |