Permalink
Browse files

Add support for HTTP Basic auth.

  • Loading branch information...
rcrowley committed May 18, 2012
1 parent f81b105 commit d73ea479e0997bd2945171e5c92a2639e9c3f2ec
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/puppet/parser/functions/related_nodes.rb
@@ -25,6 +25,9 @@
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE # FIXME
end
+ if uri.userinfo
+ http.basic_auth *uri.userinfo.split(":", 2)
+ end
# Return the list of hostnames that manage this resource, which may be empty,
# or the resources themselves if the second argument is true.

0 comments on commit d73ea47

Please sign in to comment.