Misc typo fix (#46199)

jinaj2 to jinja2

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/46219/head
Abhijeet Kasurde 6 years ago committed by Martin Krizek
parent cca9fa972d
commit 8ecc6be85c

@ -60,7 +60,7 @@ def unique(environment, a, case_sensitive=False, attribute=None):
raise AnsibleFilterError("Jinja2's unique filter failed and we cannot fall back to Ansible's version "
"as it does not support the parameters supplied", orig_exc=e)
else:
display.warning('Falling back to Ansible unique filter as Jinaj2 one failed: %s' % to_text(e))
display.warning('Falling back to Ansible unique filter as Jinja2 one failed: %s' % to_text(e))
error = e
if not HAS_UNIQUE or error:

@ -262,7 +262,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
strict = self.get_option('strict')
# Composed variables
self._set_composite_vars(self.get_option('compose'), host, hostname, strict=strict)
# Complex groups based on jinaj2 conditionals, hosts that meet the conditional are added to group
# Complex groups based on jinja2 conditionals, hosts that meet the conditional are added to group
self._add_host_to_composed_groups(self.get_option('groups'), host, hostname, strict=strict)
# Create groups based on variable values and add the corresponding hosts to it
self._add_host_to_keyed_groups(self.get_option('keyed_groups'), host, hostname, strict=strict)

Loading…
Cancel
Save