1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Print hostname when fails to generate keyed groups (#49609)

This commit is contained in:
Patrick Marques 2018-12-07 15:18:25 +00:00 committed by Brian Coca
parent f6b211890a
commit 7aa11c441d

View file

@ -343,7 +343,7 @@ class Constructable(object):
key = self._compose(keyed.get('key'), variables)
except Exception as e:
if strict:
raise AnsibleParserError("Could not generate group from %s entry: %s" % (keyed.get('key'), to_native(e)))
raise AnsibleParserError("Could not generate group for host %s from %s entry: %s" % (host, keyed.get('key'), to_native(e)))
continue
if key: