Merge "Remove extra_attr kwarg from RbacMalformedResponse"
diff --git a/patrole_tempest_plugin/rbac_exceptions.py b/patrole_tempest_plugin/rbac_exceptions.py
index 3958e17..89a735c 100644
--- a/patrole_tempest_plugin/rbac_exceptions.py
+++ b/patrole_tempest_plugin/rbac_exceptions.py
@@ -29,15 +29,11 @@
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)