Browse Source

Remove redundant format check of plan id

Change-Id: Iad5f82a75766e7d7eb132e15c6f2d72ab6fb1443
tags/1.2.0
yaofenghua 8 months ago
parent
commit
7824d9a432
1 changed files with 0 additions and 4 deletions
  1. 0
    4
      karbor/api/v1/plans.py

+ 0
- 4
karbor/api/v1/plans.py View File

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

Loading…
Cancel
Save