Open makesse opened 6 years ago
Indeed that's a bug that should have been handled when implementing issue #38 Thanks for the clear reproducer. It should be easy enough to address
What's going on here is that in ini files, keys in the global section are returned as keys in each section. Therefore we have logic to strip keys from each section that overlap with the global section. To handle this case we'll have to tag the global values differently. I.e. append '.default' to the value, and only exclude those from each section.
@pixelb : thank you for the update. Is there anything I can do to help fixing this? I am not a python coder but willing to test.
I am trying to manipulate my Ansible hosts.ini files, which looks like this:
When I want to get all hosts (global items), I run the following command:
However, when I want to display the hosts in section group1, I do not get any output at all:
If I modify the ini file to look like this:
and run the same command again I get the following output:
Is it possible to get identical behavior for the default and the other sections?
I am running crudini-0.9-1.el7.noarch