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
File Tree external pillar fails to render templates in python 3 #49927
Description of Issue/Question
The File Tree external pillar fails to render templates in python 3. The root cause is the file_tree module passes bytes to the template renderer instead of a string.
passes bytes instead of string to SLS_ENCODER.
In your salt master config
Steps to Reproduce Issue
Simple add a properly formatted yaml hosts file to /srv/pillar/hosts/minion_id and try to refresh pillars.
Changing lines 141-142 in template.py as follows is a temporary fix
The more appropriate fix probably belongs in file_tree.py: