saltstack/salt — pull request #1501 by andytinycat (2012-06-26 19:57:38+00:00)
Title: Bugfix + documentation update for 'include' option

The 'include' option lacked an example in the template configuration file. I've added a few for common use cases.

The glob method didn't work properly, because rather than using the path return from glob.glob, the code used the originally supplied path from the config file (which contained the shell metacharacter).

We also got an ugly stacktrace if an empty value was supplied to the 'include' option; this is fixed.