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

highlight dynamic parts of error msg

This commit is contained in:
Brian Coca 2017-10-12 09:59:35 -04:00
parent f5c0e2895b
commit b68fe2cd23

View file

@ -115,7 +115,7 @@ class InventoryModule(BaseFileInventoryPlugin):
group_data[section] = {group_data[section]: None}
if not isinstance(group_data[section], MutableMapping):
raise AnsibleParserError('Invalid %s entry for %s group, requires a dictionary, found %s instead.' %
raise AnsibleParserError('Invalid "%s" entry for "%s" group, requires a dictionary, found "%s" instead.' %
(section, group, type(group_data[section])))
if group_data.get('vars', False):