2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-04-15 17:49:34 +00:00

Fix invalid credentials msgpack

The invalid credentials did not accept an argument like
the rest, fix the inconsistency for msgpack deserialization.
This commit is contained in:
Jarrod Johnson 2020-01-28 15:41:50 -05:00
parent c35f7d99f7
commit 9f7c8c69f2

View File

@ -286,9 +286,9 @@ class ConfluentTargetNotFound(ConfluentNodeError):
class ConfluentTargetInvalidCredentials(ConfluentNodeError):
apicode = 502
def __init__(self, node):
def __init__(self, node, errstr='bad credentials'):
self.node = node
self.error = 'bad credentials'
self.error = errstr
def strip_node(self, node):
raise exc.TargetEndpointBadCredentials