yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #35060
[Bug 1472057] [NEW] in the function of create_trust,the judgment for “remaining_uses” can be deleted
Public bug reported:
In the function of create_trust (Corresponding file is:/keystone/trust/core.py),the judgment for “remaining_uses” can be deleted,
because controller has registered a schema to validate a resource reference.
if not redelegatable:
trust['redelegation_count'] = requested_count = 0
remaining_uses = trust.get('remaining_uses')
if remaining_uses is not None and remaining_uses <= 0: # i think this judgment redundancy
msg = _('remaining_uses must be a positive integer or null.')
raise exception.ValidationError(msg)
** Affects: keystone
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1472057
Title:
in the function of create_trust,the judgment for “remaining_uses” can
be deleted
Status in OpenStack Identity (Keystone):
New
Bug description:
In the function of create_trust (Corresponding file is:/keystone/trust/core.py),the judgment for “remaining_uses” can be deleted,
because controller has registered a schema to validate a resource reference.
if not redelegatable:
trust['redelegation_count'] = requested_count = 0
remaining_uses = trust.get('remaining_uses')
if remaining_uses is not None and remaining_uses <= 0: # i think this judgment redundancy
msg = _('remaining_uses must be a positive integer or null.')
raise exception.ValidationError(msg)
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1472057/+subscriptions
Follow ups
References