summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryaofenghua <yaofenghua@cmss.chinamobile.com>2018-11-27 18:14:52 +0800
committeryaofenghua <yaofenghua@cmss.chinamobile.com>2018-11-27 18:14:52 +0800
commit7824d9a43277b94cf17a3947c666a9ae5e88cf14 (patch)
tree8d9df4f55ce383589075aea7dbfc55c9f6aab248
parent6d9cecd0d2b13c4239aebae6583d1869802fb03f (diff)
Remove redundant format check of plan id
Notes
Notes (review): Code-Review+2: Jiao Pengju <jiaopengju@cmss.chinamobile.com> Workflow+1: Jiao Pengju <jiaopengju@cmss.chinamobile.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 28 Nov 2018 01:42:56 +0000 Reviewed-on: https://review.openstack.org/620282 Project: openstack/karbor Branch: refs/heads/master
-rw-r--r--karbor/api/v1/plans.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/karbor/api/v1/plans.py b/karbor/api/v1/plans.py
index bb2f59e..f145d1d 100644
--- a/karbor/api/v1/plans.py
+++ b/karbor/api/v1/plans.py
@@ -133,10 +133,6 @@ class PlansController(wsgi.Controller):
133 133
134 LOG.info("Show plan with id: %s", id, context=context) 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 try: 136 try:
141 plan = self._plan_get(context, id) 137 plan = self._plan_get(context, id)
142 except exception.PlanNotFound as error: 138 except exception.PlanNotFound as error: