summaryrefslogtreecommitdiffstats
path: root/lcm
diff options
context:
space:
mode:
authormaopeng zhang <zhang.maopeng1@zte.com.cn>2019-09-03 09:32:56 +0000
committerGerrit Code Review <gerrit@onap.org>2019-09-03 09:32:56 +0000
commit4ba359d8f83a8bb9b6648b53c1372fee101e5ba2 (patch)
tree2645917a4ad2787936e646dafd66b53b2bc65c69 /lcm
parentfb8bb7eb386b2e2b41c06eb0e1b29c721fb8d9c4 (diff)
parente7a0c4fabcfc4e29a1349d24ffc3c59734690d82 (diff)
Merge "fix bug for failure in deleting subscriptions for vnfm"
Diffstat (limited to 'lcm')
-rw-r--r--lcm/lcm/nf/biz/delete_subscription.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lcm/lcm/nf/biz/delete_subscription.py b/lcm/lcm/nf/biz/delete_subscription.py
index 387aa5d9..6310586a 100644
--- a/lcm/lcm/nf/biz/delete_subscription.py
+++ b/lcm/lcm/nf/biz/delete_subscription.py
@@ -15,7 +15,7 @@
import logging
from lcm.pub.database.models import SubscriptionModel
-from lcm.pub.exceptions import NFLCMException
+from lcm.pub.exceptions import NFLCMExceptionNotFound
logger = logging.getLogger(__name__)
@@ -27,5 +27,5 @@ class DeleteSubscription:
def delete_single_subscription(self):
subscription = SubscriptionModel.objects.filter(subscription_id=self.subscription_id)
if not subscription.exists():
- raise NFLCMException('Subscription(%s) does not exist' % self.subscription_id)
+ raise NFLCMExceptionNotFound('Subscription(%s) does not exist' % self.subscription_id)
subscription.delete()