group intersection not working in some situations

Let me assume that we have a inventory file called hosts:

hosts
[openstack]
keystonec
sproxyc
snode01c
snode02c
snode03c
keystone
sproxy
snode01
snode02
snode03

and a dev inventory file

[dev]
keystone
sproxy
snode01
snode02
snode03

I have a test.yml file

Can you try this on the development branch?

We’ve recently applied some patches to clean up inventory that should address this problem when using multiple inventory files at once.

1.7 is due for release soon, so it’s pretty much set to go.