Remove redundant format check of plan id
Change-Id: Iad5f82a75766e7d7eb132e15c6f2d72ab6fb1443
This commit is contained in:
parent
6d9cecd0d2
commit
7824d9a432
|
@ -133,10 +133,6 @@ class PlansController(wsgi.Controller):
|
||||||
|
|
||||||
LOG.info("Show plan with id: %s", id, context=context)
|
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:
|
try:
|
||||||
plan = self._plan_get(context, id)
|
plan = self._plan_get(context, id)
|
||||||
except exception.PlanNotFound as error:
|
except exception.PlanNotFound as error:
|
||||||
|
|
Loading…
Reference in New Issue