From f87fcecdfb9fac33ac13952a6546b8ed7f673909 Mon Sep 17 00:00:00 2001 From: Krzysztof Wilczynski Date: Tue, 26 Apr 2011 00:00:58 +0100 Subject: Small re-factor to fact function. Signed-off-by: Krzysztof Wilczynski --- fact.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'fact.rb') diff --git a/fact.rb b/fact.rb index 9522293..6e66ba6 100644 --- a/fact.rb +++ b/fact.rb @@ -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('') -- cgit v1.2.3