summaryrefslogtreecommitdiffstats
path: root/lib/puppet/network/handler
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-10-03 22:29:05 -0500
committerLuke Kanies <luke@madstop.com>2007-10-03 22:29:05 -0500
commit35718437c40ab4228bd58eabf89728b7d0919e50 (patch)
tree9685e3638ec3110599e0d83d876d4738f8667ff2 /lib/puppet/network/handler
parentbb3b3cedf4082dc884e41b864fa755057d20e228 (diff)
parentfd11603fe47668ba72f0d3f2b984174331a0a154 (diff)
Merge branch 'master' of ssh://reductivelabs.com/opt/rl/git/puppet
Conflicts: lib/puppet/defaults.rb lib/puppet/dsl.rb
Diffstat (limited to 'lib/puppet/network/handler')
-rw-r--r--lib/puppet/network/handler/ca.rb1
-rw-r--r--lib/puppet/network/handler/configuration.rb17
-rwxr-xr-xlib/puppet/network/handler/filebucket.rb1
-rwxr-xr-xlib/puppet/network/handler/fileserver.rb1
-rw-r--r--lib/puppet/network/handler/master.rb7
-rwxr-xr-xlib/puppet/network/handler/report.rb1
-rwxr-xr-xlib/puppet/network/handler/resource.rb1
-rwxr-xr-xlib/puppet/network/handler/runner.rb1
-rw-r--r--lib/puppet/network/handler/status.rb1
9 files changed, 8 insertions, 23 deletions
diff --git a/lib/puppet/network/handler/ca.rb b/lib/puppet/network/handler/ca.rb
index 052eb5c19..de7a976c8 100644
--- a/lib/puppet/network/handler/ca.rb
+++ b/lib/puppet/network/handler/ca.rb
@@ -155,4 +155,3 @@ class Puppet::Network::Handler
end
end
-# $Id$
diff --git a/lib/puppet/network/handler/configuration.rb b/lib/puppet/network/handler/configuration.rb
index 2df1b3ab4..353693bdc 100644
--- a/lib/puppet/network/handler/configuration.rb
+++ b/lib/puppet/network/handler/configuration.rb
@@ -107,16 +107,13 @@ class Puppet::Network::Handler
benchmark(level, "Compiled configuration for %s" % node.name) do
begin
config = interpreter.compile(node)
- rescue Puppet::Error => detail
- if Puppet[:trace]
- puts detail.backtrace
- end
- unless local?
- Puppet.err detail.to_s
- end
- raise XMLRPC::FaultException.new(
- 1, detail.to_s
- )
+ rescue => detail
+ # If we're local, then we leave it to the local system
+ # to handle error reporting, but otherwise we do it here
+ # so the interpreter doesn't need to know if the parser
+ # is local or not.
+ Puppet.err(detail.to_s) unless local?
+ raise
end
end
diff --git a/lib/puppet/network/handler/filebucket.rb b/lib/puppet/network/handler/filebucket.rb
index 1bf8da854..38ef7f3f2 100755
--- a/lib/puppet/network/handler/filebucket.rb
+++ b/lib/puppet/network/handler/filebucket.rb
@@ -180,4 +180,3 @@ class Puppet::Network::Handler # :nodoc:
end
end
-# $Id$
diff --git a/lib/puppet/network/handler/fileserver.rb b/lib/puppet/network/handler/fileserver.rb
index ae0e6553d..dd00450be 100755
--- a/lib/puppet/network/handler/fileserver.rb
+++ b/lib/puppet/network/handler/fileserver.rb
@@ -676,4 +676,3 @@ class Puppet::Network::Handler
end
end
-# $Id$
diff --git a/lib/puppet/network/handler/master.rb b/lib/puppet/network/handler/master.rb
index 030950c61..25c4318b8 100644
--- a/lib/puppet/network/handler/master.rb
+++ b/lib/puppet/network/handler/master.rb
@@ -77,12 +77,7 @@ class Puppet::Network::Handler
Puppet::Node::Facts.new(client, facts).save
# And get the configuration from the config handler
- begin
- config = config_handler.configuration(client)
- rescue => detail
- puts detail.backtrace
- raise
- end
+ config = config_handler.configuration(client)
return translate(config.extract)
end
diff --git a/lib/puppet/network/handler/report.rb b/lib/puppet/network/handler/report.rb
index 62e9cfdec..e202d4e2a 100755
--- a/lib/puppet/network/handler/report.rb
+++ b/lib/puppet/network/handler/report.rb
@@ -142,4 +142,3 @@ class Puppet::Network::Handler
end
end
-# $Id$
diff --git a/lib/puppet/network/handler/resource.rb b/lib/puppet/network/handler/resource.rb
index 7709b85fe..0fcd694fb 100755
--- a/lib/puppet/network/handler/resource.rb
+++ b/lib/puppet/network/handler/resource.rb
@@ -192,4 +192,3 @@ class Puppet::Network::Handler
end
end
-# $Id$
diff --git a/lib/puppet/network/handler/runner.rb b/lib/puppet/network/handler/runner.rb
index 4b9ccab75..a8d0da9ce 100755
--- a/lib/puppet/network/handler/runner.rb
+++ b/lib/puppet/network/handler/runner.rb
@@ -62,4 +62,3 @@ class Puppet::Network::Handler
end
end
-# $Id$
diff --git a/lib/puppet/network/handler/status.rb b/lib/puppet/network/handler/status.rb
index 48668ca47..fbdc7a765 100644
--- a/lib/puppet/network/handler/status.rb
+++ b/lib/puppet/network/handler/status.rb
@@ -14,4 +14,3 @@ class Puppet::Network::Handler
end
end
-# $Id$