misc typos (#74724)

This commit is contained in:
Abhijeet Kasurde 2021-05-26 19:28:52 +05:30 committed by GitHub
parent b63512774b
commit a61821b626
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -143,9 +143,9 @@ The base class does some minimal assignment for reuse in other methods.
def parse(self, inventory, loader, path, cache=True): def parse(self, inventory, loader, path, cache=True):
self.loader = loader self.loader = loader
self.inventory = inventory self.inventory = inventory
self.templar = Templar(loader=loader) self.templar = Templar(loader=loader)
It is up to the plugin now to parse the provided inventory source and translate it into Ansible inventory. 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: To facilitate this, the example below uses a few helper functions:

View file

@ -64,7 +64,7 @@ def daemonize_self():
try: try:
pid = os.fork() pid = os.fork()
if pid > 0: 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() end()
except OSError: except OSError:
e = sys.exc_info()[1] e = sys.exc_info()[1]

View file

@ -5,7 +5,7 @@
- name: gather 'bad' facts - name: gather 'bad' facts
action: bogus_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: assert:
that: that:
- "'touch' not in discovered_interpreter_python|default('')" - "'touch' not in discovered_interpreter_python|default('')"