diff --git a/lib/ansible/plugins/inventory/ini.py b/lib/ansible/plugins/inventory/ini.py index 216bd81e8a8..2175f421bac 100644 --- a/lib/ansible/plugins/inventory/ini.py +++ b/lib/ansible/plugins/inventory/ini.py @@ -203,7 +203,7 @@ class InventoryModule(BaseFileInventoryPlugin): continue elif line.startswith('[') and line.endswith(']'): - self._raise_error("Invalid section entry: '%s'. Please make sure that there are no spaces" % line + + self._raise_error("Invalid section entry: '%s'. Please make sure that there are no spaces" % line + " " + "in the section entry, and that there are no other invalid characters") # It's not a section, so the current state tells us what kind of