From 7d9789ca4156290217b27e0fffcc2261afa5f1c0 Mon Sep 17 00:00:00 2001 From: Itsuro Oda Date: Mon, 31 Jan 2022 03:49:56 +0000 Subject: [PATCH] Fix wrong exception name usage The exception name which is raised when a subscription is not found and the exception name which is defined in exceptions.py was different. This patch fixes that. Closes-Bug: 1959168 Change-Id: I9aa7fedb664245a24543133fa18e125cc5896413 --- tacker/sol_refactored/common/exceptions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tacker/sol_refactored/common/exceptions.py b/tacker/sol_refactored/common/exceptions.py index 2c35fcadb..2c362ca38 100644 --- a/tacker/sol_refactored/common/exceptions.py +++ b/tacker/sol_refactored/common/exceptions.py @@ -122,8 +122,8 @@ class VnfInstanceIsNotInstantiated(SolHttpError409): message = _("VnfInstance %(inst_id)s isn't instantiated.") -class SubscriptionNotFound(SolHttpError404): - message = _("Subscription %(subsc_id)s not found.") +class LccnSubscriptionNotFound(SolHttpError404): + message = _("LccnSubscription %(subsc_id)s not found.") class VnfLcmOpOccNotFound(SolHttpError404):