Merge "Avoid TypeError after _replace when user post a str url"
This commit is contained in:
commit
5773dfb974
@ -196,7 +196,7 @@ class RedfishConnection(object):
|
|||||||
# Enforce ssl
|
# Enforce ssl
|
||||||
if self.connection_parameters.enforceSSL is True:
|
if self.connection_parameters.enforceSSL is True:
|
||||||
config.logger.debug("Enforcing SSL")
|
config.logger.debug("Enforcing SSL")
|
||||||
rooturl = rooturl._replace(scheme="https")
|
rooturl = rooturl._replace(scheme=type(rooturl.scheme)("https"))
|
||||||
self.connection_parameters.rooturl = rooturl.geturl()
|
self.connection_parameters.rooturl = rooturl.geturl()
|
||||||
|
|
||||||
# Verify cert
|
# Verify cert
|
||||||
|
Loading…
x
Reference in New Issue
Block a user