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:
parent
f6b211890a
commit
7aa11c441d
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ class Constructable(object):
|
||||||
key = self._compose(keyed.get('key'), variables)
|
key = self._compose(keyed.get('key'), variables)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if strict:
|
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
|
continue
|
||||||
|
|
||||||
if key:
|
if key:
|
||||||
|
|
Loading…
Reference in a new issue