summaryrefslogtreecommitdiffstats
path: root/lib/puppet/network/xmlrpc
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-07-08 23:57:56 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-07-08 23:57:56 +0000
commit8a7fe9fedfcf67f9415a2ecf7fd74f6032d39d8b (patch)
tree1a5dd86162e0f73c521bae74d40e1074e3e6a031 /lib/puppet/network/xmlrpc
parent4080077639321884cc633928915664e6e1391c2e (diff)
downloadpuppet-8a7fe9fedfcf67f9415a2ecf7fd74f6032d39d8b.tar.gz
puppet-8a7fe9fedfcf67f9415a2ecf7fd74f6032d39d8b.tar.xz
puppet-8a7fe9fedfcf67f9415a2ecf7fd74f6032d39d8b.zip
Applying patch by David Schmitt from #701.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2661 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/network/xmlrpc')
-rw-r--r--lib/puppet/network/xmlrpc/client.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/puppet/network/xmlrpc/client.rb b/lib/puppet/network/xmlrpc/client.rb
index 38f40a827..606aa0019 100644
--- a/lib/puppet/network/xmlrpc/client.rb
+++ b/lib/puppet/network/xmlrpc/client.rb
@@ -99,6 +99,13 @@ module Puppet::Network
hash[:Path] ||= "/RPC2"
hash[:Server] ||= Puppet[:server]
hash[:Port] ||= Puppet[:masterport]
+ hash[:HTTPProxyHost] ||= Puppet[:http_proxy_host]
+ hash[:HTTPProxyPort] ||= Puppet[:http_proxy_port]
+
+ if "none" == hash[:HTTPProxyHost]
+ hash[:HTTPProxyHost] = nil
+ hash[:HTTPProxyPort] = nil
+ end
@puppet_server = hash[:Server]
@puppet_port = hash[:Port]
@@ -107,8 +114,8 @@ module Puppet::Network
hash[:Server],
hash[:Path],
hash[:Port],
- nil, # proxy_host
- nil, # proxy_port
+ hash[:HTTPProxyHost], # proxy_host
+ hash[:HTTPProxyPort], # proxy_port
nil, # user
nil, # password
true, # use_ssl