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

Don't try to cache a template when it's not a file #24987

Merged
merged 1 commit into from Jun 29, 2015

Conversation

heewa
Copy link
Contributor

@heewa heewa commented Jun 26, 2015

When trying to use file.managed without a source file, just contents, with templating, modules/file.py tries to cache the template itself, but in this case it's not a file, so an Exception is raised when it tries to do string stuff to a None, which gets caught and turned into a confusing string error, shown to the user.

This PR fixes this issue by avoiding trying to cache a nonexistent file.

@justinta justinta added Execution-Module Minor Change Core relates to code central or existential to Salt labels Jun 26, 2015
@justinta
Copy link

@heewa Thanks for this PR as well!

cachedout pushed a commit that referenced this pull request Jun 29, 2015
Don't try to cache a template when it's not a file
@cachedout cachedout merged commit 4af15cf into saltstack:2015.5 Jun 29, 2015
@cachedout
Copy link
Contributor

Thanks, @heewa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core relates to code central or existential to Salt Execution-Module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants