Remove unnecessary check
We have done this in method validated(...) for all of the check against request body. Change-Id: I02361e279bb0229fd41e99a36198f2982b8635c2 Related-Bug: #1468597
This commit is contained in:
parent
d270e8757d
commit
7f84ff5cda
|
@ -122,15 +122,12 @@ class TrustV3(controller.V3Controller):
|
|||
|
||||
@controller.protected()
|
||||
@validation.validated(schema.trust_create, 'trust')
|
||||
def create_trust(self, context, trust=None):
|
||||
def create_trust(self, context, trust):
|
||||
"""Create a new trust.
|
||||
|
||||
The user creating the trust must be the trustor.
|
||||
|
||||
"""
|
||||
if not trust:
|
||||
raise exception.ValidationError(attribute='trust',
|
||||
target='request')
|
||||
|
||||
auth_context = context.get('environment',
|
||||
{}).get('KEYSTONE_AUTH_CONTEXT', {})
|
||||
|
|
Loading…
Reference in New Issue