Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The former match for a section header included hosts that began with a range #17225

Merged
merged 1 commit into from
Aug 24, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/ansible/inventory/ini.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def _parse(self, lines):
del pending_declarations[groupname]

continue
elif line.startswith('['):
elif line.startswith('[') and line.endswith(']'):
Copy link
Member

@bcoca bcoca Aug 24, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strip line before matching? nvmd, already in code higher up

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")

Expand Down