From fe702b48a5020e5ed97d8b2635ab6a793f4d4c32 Mon Sep 17 00:00:00 2001 From: Ganesh Nalawade Date: Fri, 1 Dec 2017 10:13:07 +0530 Subject: [PATCH] Fix network_cli connection issue (#33420) * Copy play_context in network_cli connection class --- lib/ansible/plugins/connection/network_cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/plugins/connection/network_cli.py b/lib/ansible/plugins/connection/network_cli.py index ba461950d9..ff861bce08 100644 --- a/lib/ansible/plugins/connection/network_cli.py +++ b/lib/ansible/plugins/connection/network_cli.py @@ -84,6 +84,7 @@ class Connection(ConnectionBase): self._matched_pattern = None self._last_response = None self._history = list() + self._play_context = play_context self._local = connection_loader.get('local', play_context, '/dev/null') self._local.set_options()