Small re-factor to fact function.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
This commit is contained in:
parent
28254bef6b
commit
f87fcecdfb
1 changed files with 1 additions and 5 deletions
6
fact.rb
6
fact.rb
|
@ -24,14 +24,10 @@ module Puppet::Parser::Functions
|
||||||
# and empty string is as closest to actual undef as you we can get
|
# and empty string is as closest to actual undef as you we can get
|
||||||
# at this point in time ...
|
# at this point in time ...
|
||||||
#
|
#
|
||||||
result = (not result or result.empty?) ? '' : result
|
result = (result and not result.empty?) ? result : ''
|
||||||
|
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# vim: set ts=2 sw=2 et :
|
# vim: set ts=2 sw=2 et :
|
||||||
|
|
||||||
notice fact('interfaces')
|
|
||||||
notice fact('xyz')
|
|
||||||
notice fact('')
|
|
||||||
|
|
Loading…
Reference in a new issue