mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipapython.nsslib: Name arguments to NSPRError
Previously NSPRError was given arguments in the wrong order. Fix this by naming the arguments.
This commit is contained in:
parent
c813b8fbd3
commit
80886a50e6
@ -142,8 +142,9 @@ class NSSAddressFamilyFallback(object):
|
|||||||
try:
|
try:
|
||||||
addr_info = io.AddrInfo(host, family=self.family)
|
addr_info = io.AddrInfo(host, family=self.family)
|
||||||
except Exception:
|
except Exception:
|
||||||
raise NSPRError(error.PR_ADDRESS_NOT_SUPPORTED_ERROR,
|
raise NSPRError(
|
||||||
"Cannot resolve %s using family %s" % (host,
|
error_code=error.PR_ADDRESS_NOT_SUPPORTED_ERROR,
|
||||||
|
error_message="Cannot resolve %s using family %s" % (host,
|
||||||
io.addr_family_name(self.family)))
|
io.addr_family_name(self.family)))
|
||||||
|
|
||||||
for net_addr in addr_info:
|
for net_addr in addr_info:
|
||||||
@ -160,8 +161,9 @@ class NSSAddressFamilyFallback(object):
|
|||||||
root_logger.debug("Try to continue with next family...")
|
root_logger.debug("Try to continue with next family...")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
raise NSPRError(error.PR_ADDRESS_NOT_SUPPORTED_ERROR,
|
raise NSPRError(
|
||||||
"Could not connect to %s using any address" % host)
|
error_code=error.PR_ADDRESS_NOT_SUPPORTED_ERROR,
|
||||||
|
error_message="Could not connect to %s using any address" % host)
|
||||||
|
|
||||||
|
|
||||||
class NSSConnection(httplib.HTTPConnection, NSSAddressFamilyFallback):
|
class NSSConnection(httplib.HTTPConnection, NSSAddressFamilyFallback):
|
||||||
|
Loading…
Reference in New Issue
Block a user