Remove redundant format check of plan id

Change-Id: Iad5f82a75766e7d7eb132e15c6f2d72ab6fb1443
This commit is contained in:
yaofenghua 2018-11-27 18:14:52 +08:00
parent 6d9cecd0d2
commit 7824d9a432
1 changed files with 0 additions and 4 deletions

View File

@ -133,10 +133,6 @@ class PlansController(wsgi.Controller):
LOG.info("Show plan with id: %s", id, context=context)
if not uuidutils.is_uuid_like(id):
msg = _("Invalid plan id provided.")
raise exc.HTTPBadRequest(explanation=msg)
try:
plan = self._plan_get(context, id)
except exception.PlanNotFound as error: