salt-formulas / reclass

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

Fix merging inv query results #69

Closed AndrewPickford closed 6 years ago

AndrewPickford commented 6 years ago

Fixes merging the results of inventory queries. The following would fail previously, raising an exception when trying to merge the test parameter:

# class/first.tml
exports:
  value: 1

parameters:
  test: $[ if exports:value == 1 ]

# class/second.yml
parameters:
  test: $[ if exports:value == 2 ]

This patch fixes a couple of typos and adds a couple of missing methods and a new test for merging inv queries.