summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNathaniel Case <ncase@redhat.com>2020-12-04 16:37:55 -0500
committerGitHub <noreply@github.com>2020-12-04 15:37:55 -0600
commita4ba6ace019e87a89928dc6102b0861ae266e52f (patch)
tree0a815e2009da9166257aa9e7bd6abed693976745 /lib
parent903f2e267b9e434b4b9acb7adc71e6a1814f0d72 (diff)
downloadansible-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.py2
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()