From 225ae65b0fcf0931c9ce58d68a28d1883d5bf451 Mon Sep 17 00:00:00 2001 From: Karl Fogel Date: Fri, 29 May 2020 12:15:11 -0500 Subject: [PATCH] Make Python path warning say what it means to say (#69669) --- lib/ansible/executor/interpreter_discovery.py | 2 +- test/units/executor/test_interpreter_discovery.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/executor/interpreter_discovery.py b/lib/ansible/executor/interpreter_discovery.py index c6fa6c4c316..d387180b813 100644 --- a/lib/ansible/executor/interpreter_discovery.py +++ b/lib/ansible/executor/interpreter_discovery.py @@ -156,7 +156,7 @@ def discover_interpreter(action, interpreter_name, discovery_mode, task_vars): if not is_silent: action._discovery_warnings \ .append(u"Platform {0} on host {1} is using the discovered Python interpreter at {2}, but future installation of " - u"another Python interpreter could change this. See {3} " + u"another Python interpreter could change the meaning of that path. See {3} " u"for more information." .format(platform_type, host, found_interpreters[0], get_versioned_doclink('reference_appendices/interpreter_discovery.html'))) diff --git a/test/units/executor/test_interpreter_discovery.py b/test/units/executor/test_interpreter_discovery.py index ef62e4eb822..10f97d63cd4 100644 --- a/test/units/executor/test_interpreter_discovery.py +++ b/test/units/executor/test_interpreter_discovery.py @@ -70,7 +70,7 @@ def test_discovery_interpreter_non_linux(): assert len(mock_action.method_calls) == 2 assert mock_action.method_calls[1][0] == '_discovery_warnings.append' assert u'Platform darwin on host host-fóöbär is using the discovered Python interpreter at /usr/bin/python, ' \ - u'but future installation of another Python interpreter could change this' \ + u'but future installation of another Python interpreter could change the meaning of that path' \ in mock_action.method_calls[1][1][0]