Issue-ID: INF-353
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I9462e7f4ac94e9ca08a985020640707ac21c9887
args.append(getattr(Subscription, 'filter') == filter)
args.append(getattr(Subscription,
'consumerSubscriptionId') == consumer_subs_id)
- count, _ = uow.alarm_subscriptions.list_with_count(*args)
+ count, _ = uow.subscriptions.list_with_count(*args)
if count > 0:
raise BadRequestException("The value of parameters is duplicated")
uow.subscriptions.add(subscription)