Skip to content

Commit

Permalink
Proper handling of --no-validate-ssl argument
Browse files Browse the repository at this point in the history
Currently even if --no-validate-ssl is specified registry.py script fails with certificate verification error. This commit fixes this issue.

Fixes: andrey-pohilko#44
  • Loading branch information
pavel-mikhalchuk committed Apr 28, 2018
1 parent 72a5955 commit 401555d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def get_auth_schemes(r,path):

if DEBUG: print("[debug][funcname]: get_auth_schemes()")

try_oauth = requests.head('{0}{1}'.format(r.hostname,path))
try_oauth = requests.head('{0}{1}'.format(r.hostname,path), verify=not r.no_validate_ssl)

if 'Www-Authenticate' in try_oauth.headers:
oauth = www_authenticate.parse(try_oauth.headers['Www-Authenticate'])
Expand Down

0 comments on commit 401555d

Please sign in to comment.