-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Strip empty lines from Sensu configuration files
While it is true that the generated configuration files should not be modified manually, they might still get inspected from time to time. And in those cases, having a nice, readable configuration file can make a significant difference in usability. But because we do not want to bundle all our template conditional logic into one continuous block that looks like a core dump, we implemented the cleanup by using Jinja's trim modifiers to code blocks. This way we can almost have a cake and eat it too: the template is readable from developer's perspective and the generated configuration is concise and clean.
- Loading branch information
Showing
2 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters