Skip to content

Commit 16cfbb8

Browse files
authored
Merge pull request #21 from cidrblock/localhost
Silence localhost warnings
2 parents 9ad9af0 + 8a24b77 commit 16cfbb8

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)