summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/interpreter.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-11-15 01:26:53 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-11-15 01:26:53 +0000
commitc3c5851c0ff4bc9a07572646ef7fb745f09cf79f (patch)
treee26757e44069064b0ec7b610c2897dea721fbe38 /lib/puppet/parser/interpreter.rb
parent25d563b1152701b55490fbb5c83c6b177ed8b4f1 (diff)
downloadpuppet-c3c5851c0ff4bc9a07572646ef7fb745f09cf79f.tar.gz
puppet-c3c5851c0ff4bc9a07572646ef7fb745f09cf79f.tar.xz
puppet-c3c5851c0ff4bc9a07572646ef7fb745f09cf79f.zip
Fixing configuration storage -- there was a check being done that caused false values to get converted to nil values, which failed in the database
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1885 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser/interpreter.rb')
-rw-r--r--lib/puppet/parser/interpreter.rb19
1 files changed, 11 insertions, 8 deletions
diff --git a/lib/puppet/parser/interpreter.rb b/lib/puppet/parser/interpreter.rb
index 8657ac0af..fe8e17084 100644
--- a/lib/puppet/parser/interpreter.rb
+++ b/lib/puppet/parser/interpreter.rb
@@ -683,10 +683,6 @@ class Puppet::Parser::Interpreter
return @scope
end
- # Iteratively make sure that every object in the scope tree is translated.
- def translate(scope)
- end
-
private
# Check whether any of our files have changed.
@@ -777,11 +773,18 @@ class Puppet::Parser::Interpreter
end
}
else
- # We store all of the objects, even the collectable ones
- benchmark(:info, "Stored configuration for #{hash[:name]}") do
- Puppet::Rails::Host.transaction do
- Puppet::Rails::Host.store(hash)
+ begin
+ # We store all of the objects, even the collectable ones
+ benchmark(:info, "Stored configuration for #{hash[:name]}") do
+ Puppet::Rails::Host.transaction do
+ Puppet::Rails::Host.store(hash)
+ end
+ end
+ rescue => detail
+ if Puppet[:trace]
+ puts detail.backtrace
end
+ Puppet.err "Could not store configs: %s" % detail.to_s
end
end