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:
Dave Chen 2015-08-18 13:49:26 +08:00 committed by David Stanek
parent d270e8757d
commit 7f84ff5cda
1 changed files with 1 additions and 4 deletions

View File

@ -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', {})