summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fact.rb6
1 files changed, 1 insertions, 5 deletions
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('')