Navigation Menu

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

core: Handle empty extra vars in cli #61831

Merged
merged 1 commit into from Sep 12, 2019
Merged
Show file tree
Hide file tree
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: 2 additions & 0 deletions changelogs/fragments/extra-vars.yml
@@ -0,0 +1,2 @@
bugfixes:
- Handle empty extra vars in ansible cli (https://github.com/ansible/ansible/issues/61497).
2 changes: 2 additions & 0 deletions lib/ansible/parsing/splitter.py
Expand Up @@ -60,6 +60,8 @@ def parse_kv(args, check_raw=False):
if args is not None:
try:
vargs = split_args(args)
except IndexError as e:
raise AnsibleParserError("Unable to parse argument string", orig_exc=e)
except ValueError as ve:
if 'no closing quotation' in str(ve).lower():
raise AnsibleParserError("error parsing argument string, try quoting the entire line.", orig_exc=ve)
Expand Down