Merge "Avoid TypeError after _replace when user post a str url"

This commit is contained in:
Jenkins 2017-01-25 15:17:01 +00:00 committed by Gerrit Code Review
commit 5773dfb974

View File

@ -196,7 +196,7 @@ class RedfishConnection(object):
# Enforce ssl
if self.connection_parameters.enforceSSL is True:
config.logger.debug("Enforcing SSL")
rooturl = rooturl._replace(scheme="https")
rooturl = rooturl._replace(scheme=type(rooturl.scheme)("https"))
self.connection_parameters.rooturl = rooturl.geturl()
# Verify cert