Merge "Remove extra_attr kwarg from RbacMalformedResponse"

This commit is contained in:
Zuul 2018-10-09 11:09:40 +00:00 committed by Gerrit Code Review
commit 722455f9fe
1 changed files with 1 additions and 5 deletions

View File

@ -29,15 +29,11 @@ class RbacMalformedResponse(BasePatroleException):
message = ("The response body is missing the expected %(attribute)s due "
"to policy enforcement failure.")
def __init__(self, empty=False, extra_attr=False, **kwargs):
def __init__(self, empty=False, **kwargs):
if empty:
self.message = ("The response body is empty due to policy "
"enforcement failure.")
kwargs = {}
if extra_attr:
self.message = ("The response body contained an unexpected "
"attribute due to policy enforcement failure.")
kwargs = {}
super(RbacMalformedResponse, self).__init__(**kwargs)