]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
Removing string interpolation from fact.rb. I am not sure whether
authorKrzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Tue, 26 Apr 2011 03:21:32 +0000 (04:21 +0100)
committerKrzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Tue, 26 Apr 2011 03:21:32 +0000 (04:21 +0100)
we should fiddle with this.  The old behaviour e.g. evaluate when
inside "" and don't do anything when inside '' is probably better
choice in the end as people are used to it working that way.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
fact.rb

diff --git a/fact.rb b/fact.rb
index 6e66ba6bbce9890e3e189e0a76c23283e3920d6b..0c2486774c05376567b8b16c6d8acc6942986e8b 100644 (file)
--- a/fact.rb
+++ b/fact.rb
@@ -15,7 +15,6 @@ module Puppet::Parser::Functions
     raise(Puppet::ParseError, 'fact(): You must provide ' +
       'fact name') if fact.empty?
 
-    fact   = strinterp(fact) # Evaluate any interpolated variable names ...
     result = lookupvar(fact) # Get the value of interest from Facter ...
 
     #