From a61821b62668aaa857daec1d65256adcf9ff6a01 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Wed, 26 May 2021 19:28:52 +0530 Subject: [PATCH] misc typos (#74724) --- docs/docsite/rst/dev_guide/developing_inventory.rst | 6 +++--- lib/ansible/modules/async_wrapper.py | 2 +- .../targets/gathering_facts/test_prevent_injection.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/docsite/rst/dev_guide/developing_inventory.rst b/docs/docsite/rst/dev_guide/developing_inventory.rst index 0df314cb247..0b20593ef3f 100644 --- a/docs/docsite/rst/dev_guide/developing_inventory.rst +++ b/docs/docsite/rst/dev_guide/developing_inventory.rst @@ -143,9 +143,9 @@ The base class does some minimal assignment for reuse in other methods. def parse(self, inventory, loader, path, cache=True): - self.loader = loader - self.inventory = inventory - self.templar = Templar(loader=loader) + self.loader = loader + self.inventory = inventory + self.templar = Templar(loader=loader) It is up to the plugin now to parse the provided inventory source and translate it into Ansible inventory. To facilitate this, the example below uses a few helper functions: diff --git a/lib/ansible/modules/async_wrapper.py b/lib/ansible/modules/async_wrapper.py index a29262c5256..e11fb6ae1e4 100644 --- a/lib/ansible/modules/async_wrapper.py +++ b/lib/ansible/modules/async_wrapper.py @@ -64,7 +64,7 @@ def daemonize_self(): try: pid = os.fork() if pid > 0: - # TODO: print 'async_wrapper_pid': pid, but careful as it will polute expectec output. + # TODO: print 'async_wrapper_pid': pid, but careful as it will pollute expected output. end() except OSError: e = sys.exc_info()[1] diff --git a/test/integration/targets/gathering_facts/test_prevent_injection.yml b/test/integration/targets/gathering_facts/test_prevent_injection.yml index f304fe88ec2..064b7a90199 100644 --- a/test/integration/targets/gathering_facts/test_prevent_injection.yml +++ b/test/integration/targets/gathering_facts/test_prevent_injection.yml @@ -5,7 +5,7 @@ - name: gather 'bad' facts action: bogus_facts - - name: ensure that the 'bad' facts didn't polute what they are not supposed to + - name: ensure that the 'bad' facts didn't pollute what they are not supposed to assert: that: - "'touch' not in discovered_interpreter_python|default('')"