summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-09-06 20:50:26 -0500
committerLuke Kanies <luke@madstop.com>2007-09-06 20:50:26 -0500
commitcaad11a9d15210017f75918b50184bc12f2cc1d0 (patch)
tree27e3262179eb45017ef27b93b2ce492c321cf331 /lib/puppet
parent7abc78ad25979c62b585127a8f2a32c55e96819f (diff)
downloadpuppet-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')
-rw-r--r--lib/puppet/metatype/metaparams.rb2
-rw-r--r--lib/puppet/network/client/master.rb2
-rw-r--r--lib/puppet/network/handler/master.rb15
3 files changed, 8 insertions, 11 deletions
diff --git a/lib/puppet/metatype/metaparams.rb b/lib/puppet/metatype/metaparams.rb
index 0e31bb41c..92f12e6cb 100644
--- a/lib/puppet/metatype/metaparams.rb
+++ b/lib/puppet/metatype/metaparams.rb
@@ -274,7 +274,7 @@ class Puppet::Type
# nil.
unless object
self.fail "Could not retrieve dependency '%s[%s]' of %s" %
- [tname.to_s.capitalize, self.ref, name]
+ [tname.to_s.capitalize, @resource.ref, name]
end
# Are we requiring them, or vice versa? See the method docs
diff --git a/lib/puppet/network/client/master.rb b/lib/puppet/network/client/master.rb
index b9f77f61d..c6d7cd75d 100644
--- a/lib/puppet/network/client/master.rb
+++ b/lib/puppet/network/client/master.rb
@@ -694,5 +694,3 @@ class Puppet::Network::Client::Master < Puppet::Network::Client
sleep(time)
end
end
-
-# $Id$
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.