salt icon indicating copy to clipboard operation
salt copied to clipboard

SLS rendering errors could be more helpful

Open jdshewey opened this issue 9 years ago • 9 comments

Description of Issue/Question

When referencing a pillar that does not exist, an error is thrown such as:

Rendering SLS 'base:katello.server' failed: Jinja variable 'str object' has no attribute 'gpg_key' this error could be more helpful by including the line number of the SLS or the ID Declaration. This is particularly useful in large files where a variable like gpg_key could be referenced often and it is difficult to find the instance that was fat-fingered.

jdshewey avatar Nov 12 '17 16:11 jdshewey

Yeah, that seems reasonable, I am marking this as a feature request.

Thanks, Daniel

gtmanfred avatar Nov 13 '17 16:11 gtmanfred

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

stale[bot] avatar Mar 08 '19 16:03 stale[bot]

bump

jdshewey avatar Mar 08 '19 17:03 jdshewey

Thank you for updating this issue. It is no longer marked as stale.

stale[bot] avatar Mar 08 '19 17:03 stale[bot]

I'm also currently wishing for line numbers :)

I'm getting the somewhat baffling: "Trying to populate non string value into a string for variable ${deep:4}. Please make sure the value of the property is a string."

helephant avatar Jul 24 '19 15:07 helephant

I spend most of my hours finding errors in big SLS files. This is not so much a feature request but a big requirement.

driskell avatar Aug 15 '19 14:08 driskell

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

stale[bot] avatar Jan 08 '20 04:01 stale[bot]

bump

jdshewey avatar Jan 08 '20 05:01 jdshewey

Thank you for updating this issue. It is no longer marked as stale.

stale[bot] avatar Jan 08 '20 05:01 stale[bot]