From 035fa38bf27719450f4e731c45910aebfbed9529 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Fri, 23 Nov 2007 19:22:23 -0600 Subject: Adding patch 20070905004837-6856b-2e7b8d8595ee0883537620c46424a4bf6174dc6a.patch from womble -- Add an attr_accessor for @http#ca_file, since older versions of libopenssl-ruby only provides ca_file=, not ca_file --- lib/puppet/network/xmlrpc/client.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/puppet/network/xmlrpc/client.rb b/lib/puppet/network/xmlrpc/client.rb index ab4117b0e..790a257bb 100644 --- a/lib/puppet/network/xmlrpc/client.rb +++ b/lib/puppet/network/xmlrpc/client.rb @@ -87,6 +87,10 @@ module Puppet::Network "Could not find ca certificate %s" % Puppet[:localcacert] end + # Pop open @http a little; older versions of Net::HTTP(s) didn't + # give us a reader for ca_file... Grr... + class << @http; attr_accessor :ca_file; end + # Don't want to overwrite certificates, @http will freeze itself # once started. unless @http.ca_file -- cgit