summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser
diff options
context:
space:
mode:
authorDavid Schmitt <david@schmitt.edv-bus.at>2007-11-05 21:56:49 +0100
committerDavid Schmitt <david@schmitt.edv-bus.at>2007-11-08 18:39:19 +0100
commitb250416c272ded3e33cdfbb7ac1de989a1b92094 (patch)
tree421109a449fd203142515a83e22cfe4bd39718cb /lib/puppet/parser
parent1ffcce079fd7a677ebdc22453a9d10675fb4ed4d (diff)
downloadpuppet-b250416c272ded3e33cdfbb7ac1de989a1b92094.tar.gz
puppet-b250416c272ded3e33cdfbb7ac1de989a1b92094.tar.xz
puppet-b250416c272ded3e33cdfbb7ac1de989a1b92094.zip
fix #731: add exported=true to collect_exported
this just adds the patch from the bugreport
Diffstat (limited to 'lib/puppet/parser')
-rw-r--r--lib/puppet/parser/collector.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/parser/collector.rb b/lib/puppet/parser/collector.rb
index 3eb37dfa2..e3c91bccb 100644
--- a/lib/puppet/parser/collector.rb
+++ b/lib/puppet/parser/collector.rb
@@ -23,7 +23,8 @@ class Puppet::Parser::Collector
host = Puppet::Rails::Host.find_by_name(@scope.host)
args = {:include => {:param_values => :param_name}}
- args[:conditions] = "(exported = 't' AND restype = '%s')" % [@type]
+ args[:conditions] = "(exported = %s AND restype = '%s')" %
+ [ActiveRecord::Base.connection.quote(true), @type]
if @equery
args[:conditions] += " AND (%s)" % [@equery]
end