From 35b95abf28c2885a8363b850dfa59b108cbd1984 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 12 Mar 2019 13:15:14 -0700 Subject: [PATCH] Avoid auto-interpreter for ansible-pull localhost. (#53699) --- lib/ansible/cli/pull.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/cli/pull.py b/lib/ansible/cli/pull.py index 6e8adfeca89..fb9878afebf 100644 --- a/lib/ansible/cli/pull.py +++ b/lib/ansible/cli/pull.py @@ -170,6 +170,8 @@ class PullCLI(CLI): inv_opts = self._get_inv_cli() if not inv_opts: inv_opts = " -i localhost, " + # avoid interpreter discovery since we already know which interpreter to use on localhost + inv_opts += '-e %s ' % shlex_quote('ansible_python_interpreter=%s' % sys.executable) # SCM specific options if context.CLIARGS['module_name'] == 'git':