cafuego/check_puppetmaster — pull request #2 by matthope (2013-01-07 07:36:57+00:00)
Title: Minor fixes to reduce errors in our environment

* Use "-m1" argument to `grep` to only get the first match
_If some parameters in the YAML file match the word "expiration" this can mess up the check._

- Check if yaml report exists before running grep against it. If the
certificates and reports get out of sync (say, you deleted some
reports) you'll get some "No such file or directory"