Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an execution module to test load_yaml/load_json #49619

Closed
terminalmage opened this issue Sep 11, 2018 · 3 comments
Closed

Add an execution module to test load_yaml/load_json #49619

terminalmage opened this issue Sep 11, 2018 · 3 comments
Assignees
Labels
Feature new functionality including changes to functionality and code refactors, etc.
Milestone

Comments

@terminalmage
Copy link
Contributor

This would be a function that would import the same code used by our Jinja renderer to handle load_yaml/load_json, to be used as a sanity check so one can see what data that map file contains. This would be very helpful to troubleshoot instances in which the data that is loaded doesn't match what the user expects, resulting in SLS errors.

Additionally, it would be useful to also have an option to use grains.filter_by to see what a given platform would load out of that map file.

@terminalmage terminalmage self-assigned this Sep 11, 2018
@terminalmage terminalmage added the Feature new functionality including changes to functionality and code refactors, etc. label Sep 11, 2018
@terminalmage terminalmage added this to the Approved milestone Sep 11, 2018
@terminalmage
Copy link
Contributor Author

Implemented via #51047.

@sastorsl
Copy link
Contributor

Would love to see this.

@max-arnold
Copy link
Contributor

@sastorsl I backported this feature to the master branch, hopefully it will be included in Salt Neon release: #55253

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature new functionality including changes to functionality and code refactors, etc.
Projects
None yet
Development

No branches or pull requests

3 participants