-
Notifications
You must be signed in to change notification settings - Fork 23.8k
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
YAML Inventory Parsing Issue #41692
Labels
bug
This issue/PR relates to a bug.
P2
Priority 2 - Issue Blocks Release
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
Milestone
Comments
with patch from PR above I now get:
|
@bcoca I applied the patch and it works as advertised. Thanks for the quick fix! |
bcoca
added a commit
to bcoca/ansible
that referenced
this issue
Jun 19, 2018
- even if defined as mapping but having no keys, objects shoudl still be processed correctly - also add ansilbe_verbosity to vars not to display in ansible-inventory fixes ansible#41692
bcoca
added a commit
to bcoca/ansible
that referenced
this issue
Jun 20, 2018
* handle groups correctly when they are 'null' - even if defined as mapping but having no keys, objects shoudl still be processed correctly - also add ansilbe_verbosity to vars not to display in ansible-inventory fixes ansible#41692 (cherry picked from commit 05a49d6)
bcoca
added a commit
that referenced
this issue
Jun 20, 2018
* handle groups correctly when they are 'null' - even if defined as mapping but having no keys, objects shoudl still be processed correctly - also add ansilbe_verbosity to vars not to display in ansible-inventory fixes #41692
jacum
pushed a commit
to jacum/ansible
that referenced
this issue
Jun 26, 2018
* handle groups correctly when they are 'null' - even if defined as mapping but having no keys, objects shoudl still be processed correctly - also add ansilbe_verbosity to vars not to display in ansible-inventory fixes ansible#41692
kbreit
pushed a commit
to kbreit/ansible
that referenced
this issue
Jul 3, 2018
* handle groups correctly when they are 'null' - even if defined as mapping but having no keys, objects shoudl still be processed correctly - also add ansilbe_verbosity to vars not to display in ansible-inventory fixes ansible#41692 (cherry picked from commit 05a49d6)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bug
This issue/PR relates to a bug.
P2
Priority 2 - Issue Blocks Release
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
SUMMARY
In Ansible 2.6 RC3 we are seeing an issue where the YAML inventory parser is not correctly identifying groups. Eg, for this inventory file:
Running "ansible group1 --list-hosts" complains about "group2":
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
CentOS Linux release 7.4.1708 (Core)
STEPS TO REPRODUCE
EXPECTED RESULTS
With Ansible 2.4 and 2.5 we get these results:
ACTUAL RESULTS
With ansible 2.6 we get these results:
The text was updated successfully, but these errors were encountered: