diff options
author | hongyuzhao <zhao.hongyu@zte.com.cn> | 2019-09-03 13:09:31 +0800 |
---|---|---|
committer | hongyuzhao <zhao.hongyu@zte.com.cn> | 2019-09-03 13:11:25 +0800 |
commit | e7a0c4fabcfc4e29a1349d24ffc3c59734690d82 (patch) | |
tree | 975adb0f0cad4551b673918df69dacee24936f45 | |
parent | 121fd98523ca75fc7856ae179cd72b26bd0b3778 (diff) |
fix bug for failure in deleting subscriptions for vnfm
Change-Id: I3127f65f364e39a172cd0634da5a7218fabe20f0
Issue-ID: VFC-1508
Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
-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() |