From f622e18eff86d7a65e47cb6fd3ac07cceb5b3ecb Mon Sep 17 00:00:00 2001 From: shadoi Date: Fri, 15 Dec 2006 21:10:22 +0000 Subject: Go back to restype and remove STI classes, they were more trouble than they were worth. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1940 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/parser/resource.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/puppet/parser') diff --git a/lib/puppet/parser/resource.rb b/lib/puppet/parser/resource.rb index 0802dd882..7ea85dded 100644 --- a/lib/puppet/parser/resource.rb +++ b/lib/puppet/parser/resource.rb @@ -266,11 +266,11 @@ class Puppet::Parser::Resource # 'type' isn't a valid column name, so we have to use something else. args = symbolize_options(args) - #args[:type] = args[:type] - #args.delete(:type) + args[:restype] = args[:type] + args.delete(:type) # Let's see if the object exists - if obj = host.resources.find_by_type_and_title(self.type, self.title) + if obj = host.resources.find_by_restype_and_title(self.type, self.title) # We exist args.each do |param, value| obj[param] = value -- cgit