projects
/
osm
/
NBI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes kdu-name on kdur indexing for instantiating KDUs
[osm/NBI.git]
/
osm_nbi
/
subscriptions.py
diff --git
a/osm_nbi/subscriptions.py
b/osm_nbi/subscriptions.py
index
c6105ee
..
ec70d0c
100644
(file)
--- a/
osm_nbi/subscriptions.py
+++ b/
osm_nbi/subscriptions.py
@@
-201,7
+201,9
@@
class SubscriptionThread(threading.Thread):
event_details)
# self.logger.debug("subscribers list: ")
# self.logger.debug(subscribers)
event_details)
# self.logger.debug("subscribers list: ")
# self.logger.debug(subscribers)
- asyncio.ensure_future(self.nslcm.send_notifications(subscribers, loop=self.loop))
+ if subscribers:
+ asyncio.ensure_future(self.nslcm.send_notifications(subscribers, loop=self.loop),
+ loop=self.loop)
else:
self.logger.debug("Message can not be used for notification of nslcm")
elif topic == "nsi":
else:
self.logger.debug("Message can not be used for notification of nslcm")
elif topic == "nsi":