diff options
| author | Luke Kanies <luke@madstop.com> | 2007-09-06 20:50:26 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-09-06 20:50:26 -0500 |
| commit | caad11a9d15210017f75918b50184bc12f2cc1d0 (patch) | |
| tree | 27e3262179eb45017ef27b93b2ce492c321cf331 /lib/puppet/network/handler/master.rb | |
| parent | 7abc78ad25979c62b585127a8f2a32c55e96819f (diff) | |
| download | puppet-caad11a9d15210017f75918b50184bc12f2cc1d0.tar.gz puppet-caad11a9d15210017f75918b50184bc12f2cc1d0.tar.xz puppet-caad11a9d15210017f75918b50184bc12f2cc1d0.zip | |
Fixing some broken tests in the master client, and adding a test for #800 but it is unfortunately disabled because we cannot realistically fix it using the current design. It will be easy after the REST refactor, though.
Diffstat (limited to 'lib/puppet/network/handler/master.rb')
| -rw-r--r-- | lib/puppet/network/handler/master.rb | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/puppet/network/handler/master.rb b/lib/puppet/network/handler/master.rb index 18f37ca4a..c8db277ba 100644 --- a/lib/puppet/network/handler/master.rb +++ b/lib/puppet/network/handler/master.rb @@ -43,7 +43,7 @@ class Puppet::Network::Handler @local = false end - args[:Local] = local? + args[:Local] = true if hash.include?(:CA) and hash[:CA] @ca = Puppet::SSLCertificates::CA.new() @@ -77,17 +77,16 @@ class Puppet::Network::Handler fact_handler.set(client, facts) # And get the configuration from the config handler - config = config_handler.configuration(client) + begin + config = config_handler.configuration(client) + rescue => detail + puts detail.backtrace + raise + end return translate(config.extract) end - def local=(val) - @local = val - config_handler.local = val - fact_handler.local = val - end - private # Manipulate the client name as appropriate. |
