Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Make test check_pillar more lenient #50022
What does this PR do?
It makes the test.check_pillar state a bit more lenient when it comes to pillar loaded in using flat files. These values can be loaded as OrderedDict's and unicode strings, where currently the state checks for dict and str types only.
What issues does this PR fix or reference?
I did not create a corresponding issue since this was an extremely easy fix, but I can.
Using flat pillar files would load as OrderedDict's and unicode strings for me (not sure if this is just due to our current setup). These would fail simple test.check_pillar tests for dictionary and string types.
These values are seen as correct by test.check_pillar and pass with no issues.
Yes, and added a new test for the string types.
Commits signed with GPG?
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.