Skip to content

Commit 8a24b77

Browse files
committed
Silence localhost warnings
1 parent abf13d5 commit 8a24b77

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pytest_ansible_network_integration/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,8 @@ def environment() -> Dict[str, Any]:
339339
env = os.environ.copy()
340340
if "VIRTUAL_ENV" in os.environ:
341341
env["PATH"] = os.path.join(os.environ["VIRTUAL_ENV"], "bin") + os.pathsep + env["PATH"]
342+
# Disable warnings about localhost, since these are tests
343+
env["ANSIBLE_LOCALHOST_WARNING"] = "False"
342344
return env
343345

344346

0 commit comments

Comments
 (0)