mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 09:43:15 +00:00
Print hostname when fails to generate keyed groups (#49609)
This commit is contained in:
committed by
Brian Coca
parent
f6b211890a
commit
7aa11c441d
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user