Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
f4a20feb
Commit
f4a20feb
authored
Mar 12, 2014
by
James Cammarata
Committed by
Michael DeHaan
Mar 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused code from get_ca_certs() function
parent
02b2e532
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
7 deletions
+1
-7
lib/ansible/module_utils/urls.py
+1
-7
No files found.
lib/ansible/module_utils/urls.py
View file @
f4a20feb
...
...
@@ -77,11 +77,10 @@ class SSLValidationHandler(urllib2.BaseHandler):
http://techknack.net/python-urllib2-handlers/
'''
def
__init__
(
self
,
module
,
hostname
,
port
,
ca_cert
=
None
):
def
__init__
(
self
,
module
,
hostname
,
port
):
self
.
module
=
module
self
.
hostname
=
hostname
self
.
port
=
port
self
.
ca_cert
=
ca_cert
def
get_ca_certs
(
self
):
# tries to find a valid CA cert in one of the
...
...
@@ -92,11 +91,6 @@ class SSLValidationHandler(urllib2.BaseHandler):
platform
=
get_platform
()
distribution
=
get_distribution
()
if
self
.
ca_cert
:
# the user provided a custom CA cert (ie. one they
# uploaded themselves), so add it to the list first
ca_certs
.
append
(
self
.
ca_cert
)
# build a list of paths to check for .crt/.pem files
# based on the platform type
paths_checked
.
append
(
'/etc/ssl/certs'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment