yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #45752
[Bug 1472057] Re: in the function of create_trust,the judgment for “remaining_uses” can be deleted
Marking as invalid since this should have expired as incomplete long
ago.
** Changed in: keystone
Status: Incomplete => Invalid
** Changed in: keystone
Assignee: Deepti Ramakrishna (dramakri) => (unassigned)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (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):
Invalid
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
References