diff --git a/zuul/ansible/paths.py b/zuul/ansible/paths.py index 04daef481d..05f9fdc593 100644 --- a/zuul/ansible/paths.py +++ b/zuul/ansible/paths.py @@ -24,7 +24,7 @@ import ansible.plugins.lookup def _is_safe_path(path): full_path = os.path.realpath(os.path.abspath(os.path.expanduser(path))) - if not full_path.startswith(os.path.abspath(os.path.curdir)): + if not full_path.startswith(os.path.abspath(os.path.expanduser('~'))): return False return True