From 96181683c15de77aa7105ef6f610c82e122010f6 Mon Sep 17 00:00:00 2001 From: "Zhang Rong(Jon)" Date: Mon, 7 Nov 2022 15:25:24 +0800 Subject: [PATCH] Fix INF-331 the ocloud detail path allow to be empty Issue-ID: INF-331 Signed-off-by: Zhang Rong(Jon) Change-Id: Ie8a477dc3148d827d4409135e7be096738767d33 (cherry picked from commit f31e251648b3b24c19fcdda8d6e44900aa2d9ad9) --- o2ims/views/ocloud_route.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/o2ims/views/ocloud_route.py b/o2ims/views/ocloud_route.py index 1e2a6f2..af5e8c6 100644 --- a/o2ims/views/ocloud_route.py +++ b/o2ims/views/ocloud_route.py @@ -49,7 +49,7 @@ class VersionRouter(Resource): # ---------- OClouds ---------- # -@api_ims_inventory_v1.route("/v1/") +@api_ims_inventory_v1.route(*["/v1", "/v1/"]) @api_ims_inventory_v1.response(404, 'oCloud not found') @api_ims_inventory_v1.param( 'all_fields', -- 2.16.6