From ade9f3c7296db12eee6f3c9c3aa29b99da652960 Mon Sep 17 00:00:00 2001 From: Bart Vanbrabant Date: Sun, 3 Feb 2008 11:44:32 +0100 Subject: Store a resource before adding relations to it otherwise activerecord will complain. This fixes #933 --- lib/puppet/parser/resource.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/puppet/parser') diff --git a/lib/puppet/parser/resource.rb b/lib/puppet/parser/resource.rb index 7dc42ccec..58667727f 100644 --- a/lib/puppet/parser/resource.rb +++ b/lib/puppet/parser/resource.rb @@ -239,6 +239,8 @@ class Puppet::Parser::Resource # Handle file specially db_resource.file = self.file + db_resource.save + @params.each { |name, param| param.to_rails(db_resource) } -- cgit