X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_nbi%2Fsubscriptions.py;h=b178e5bae8dc8b5c89a1bf639e8f84c5c317eaa9;hb=9af2a4785d3a77772fd205aa572cc6a64d4d1003;hp=1f172dde9138cf028bcfe1d145e3e90683e04772;hpb=f100459221b95cdaaa543793623e556a9abd4852;p=osm%2FNBI.git diff --git a/osm_nbi/subscriptions.py b/osm_nbi/subscriptions.py index 1f172dd..b178e5b 100644 --- a/osm_nbi/subscriptions.py +++ b/osm_nbi/subscriptions.py @@ -187,7 +187,6 @@ class SubscriptionThread(threading.Thread): self.logger.debug("Starting") while not self.to_terminate: try: - self.loop.run_until_complete( asyncio.ensure_future(self.start_kafka(), loop=self.loop) ) @@ -284,24 +283,22 @@ class SubscriptionThread(threading.Thread): else: op_state = params["operationState"] event_details = { - "topic": topic, - "command": command.upper(), - "params": params, - } + "topic": topic, + "command": command.upper(), + "params": params, + } subscribers = self.vnflcm.get_subscribers( - vnfd_id, - vnf_instance_id, - command.upper(), - op_state, - event_details - ) + vnfd_id, + vnf_instance_id, + command.upper(), + op_state, + event_details, + ) if subscribers: asyncio.ensure_future( - self.vnflcm.send_notifications( - subscribers, loop=self.loop - ), - loop=self.loop - ) + self.vnflcm.send_notifications(subscribers, loop=self.loop), + loop=self.loop, + ) elif topic == "nsi": if command == "terminated" and params["operationState"] in ( "COMPLETED",