X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Flcm%2Fnf%2Fbiz%2Fcreate_subscription.py;h=6802c2218f9764830ce2e4afebc737e3ea0cb55c;hb=906531a0b17c93a9c442366456032a046122034c;hp=db529a73429462744aff193a5407aa847b32c8f7;hpb=61b127d5e54d2e2ce892c1c4360a23136321f125;p=vfc%2Fgvnfm%2Fvnflcm.git diff --git a/lcm/lcm/nf/biz/create_subscription.py b/lcm/lcm/nf/biz/create_subscription.py index db529a73..6802c221 100644 --- a/lcm/lcm/nf/biz/create_subscription.py +++ b/lcm/lcm/nf/biz/create_subscription.py @@ -25,6 +25,7 @@ from rest_framework import status from lcm.nf import const from lcm.pub.database.models import SubscriptionModel from lcm.pub.exceptions import NFLCMException +from lcm.pub.exceptions import NFLCMExceptionSeeOther from lcm.pub.utils.values import ignore_case_get logger = logging.getLogger(__name__) @@ -116,8 +117,8 @@ class CreateSubscription: return True for subscription in subscriptions: if self.check_filter_exists(subscription): - raise NFLCMException("Already Subscription exists with the " - "same callbackUri and filter") + raise NFLCMExceptionSeeOther("Already Subscription exists with the " + "same callbackUri and filter") return False def save_db(self):