Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
salt.match.search_by resulting in 'None' since 2019.2 #51865
Description of Issue/Question
I'm using a setup as described in #39457 (comment) to apply roles to my minions. This worked fine until I upgraded to 2019.02.
It seems like the match.search_by isn't working correctly, or maybe it's something I've missed in the release notes. Here's what I have (I've added log.debug for some variables):
Steps to Reproduce Issue
Setup like above and run "salt 'balder*' pillar.items roles". roles pillar is empty, but should contain this minions roles instead:
This is the "extra" debug output:
So role_defs is populated (MYDEBUG-role_defs) and it can be rendered as yaml (MYDEBUG-test). However roles get 'Null' as it seems that
Master and minions have the same version.
@garethgreenaway no problem, thanks for the feedback! However the problem also occurs when running state.apply on other targets than my salt master. The same when I use salt-call state.apply from one of my minions.
This is the error I get (roles would be normally populated by match.search_by):