diff options
author | Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> | 2011-04-26 00:00:58 +0100 |
---|---|---|
committer | Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> | 2011-04-26 00:00:58 +0100 |
commit | f87fcecdfb9fac33ac13952a6546b8ed7f673909 (patch) | |
tree | 6341742ab0b5c5373a220f909d707c6a76fcd890 | |
parent | 28254bef6baa6ac9c1c26a2c58bdfd0548c7a553 (diff) | |
download | puppet-stdlib-f87fcecdfb9fac33ac13952a6546b8ed7f673909.tar.gz puppet-stdlib-f87fcecdfb9fac33ac13952a6546b8ed7f673909.tar.bz2 |
Small re-factor to fact function.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
-rw-r--r-- | fact.rb | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -24,14 +24,10 @@ module Puppet::Parser::Functions # and empty string is as closest to actual undef as you we can get # at this point in time ... # - result = (not result or result.empty?) ? '' : result + result = (result and not result.empty?) ? result : '' return result end end # vim: set ts=2 sw=2 et : - -notice fact('interfaces') -notice fact('xyz') -notice fact('') |