diff options
author | maopeng zhang <zhang.maopeng1@zte.com.cn> | 2019-09-03 09:32:56 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-09-03 09:32:56 +0000 |
commit | 4ba359d8f83a8bb9b6648b53c1372fee101e5ba2 (patch) | |
tree | 2645917a4ad2787936e646dafd66b53b2bc65c69 | |
parent | fb8bb7eb386b2e2b41c06eb0e1b29c721fb8d9c4 (diff) | |
parent | e7a0c4fabcfc4e29a1349d24ffc3c59734690d82 (diff) |
Merge "fix bug for failure in deleting subscriptions for vnfm"
-rw-r--r-- | lcm/lcm/nf/biz/delete_subscription.py | 4 |
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() |