Skip to content

Commit

Permalink
Bug about ssl verify
Browse files Browse the repository at this point in the history
The value of "insecure" should be related to CONFIG_INSECURE_KEY_NAME
in config file.
  • Loading branch information
bliuredhat committed Dec 5, 2016
1 parent d20deb0 commit 3292267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdc_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class to perform requests.
print("'%s' must be specified in configuration file." % CONFIG_URL_KEY_NAME)
sys.exit(1)
ssl_verify = config.get(CONFIG_SSL_VERIFY_KEY_NAME, ssl_verify)
insecure = config.get(CONFIG_SSL_VERIFY_KEY_NAME)
insecure = config.get(CONFIG_INSECURE_KEY_NAME)
if insecure is not None:
sys.stderr.write("Warning: '%s' option is deprecated; please use '%s' instead" % (
CONFIG_INSECURE_KEY_NAME, CONFIG_SSL_VERIFY_KEY_NAME))
Expand Down

0 comments on commit 3292267

Please sign in to comment.