diff options
Diffstat (limited to 'lib/puppet/network/handler')
-rw-r--r-- | lib/puppet/network/handler/ca.rb | 1 | ||||
-rw-r--r-- | lib/puppet/network/handler/configuration.rb | 17 | ||||
-rwxr-xr-x | lib/puppet/network/handler/filebucket.rb | 1 | ||||
-rwxr-xr-x | lib/puppet/network/handler/fileserver.rb | 1 | ||||
-rw-r--r-- | lib/puppet/network/handler/master.rb | 7 | ||||
-rwxr-xr-x | lib/puppet/network/handler/report.rb | 1 | ||||
-rwxr-xr-x | lib/puppet/network/handler/resource.rb | 1 | ||||
-rwxr-xr-x | lib/puppet/network/handler/runner.rb | 1 | ||||
-rw-r--r-- | lib/puppet/network/handler/status.rb | 1 |
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$ |