salt-formulas / reclass

A recursive external node classifier for automation tools like Ansible, Puppet, and Salt
Other
53 stars 23 forks source link

Fix invquery references bug introduced in refactoring #66

Closed AndrewPickford closed 6 years ago

AndrewPickford commented 6 years ago

The refactoring introduced a bug in the master list of references (and invquery references) built up in LogicTest.__init__ in invitem.py. The references (and invquery references) from EqualityTest objects should be used to extend the master list not append to it.

Later parts of the code rely on the list of references being a flat list, without any sublists.