X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_policy_module%2Fcommon%2Flcm_client.py;h=e78420da71e8a628eec51ef441a600162a790729;hb=f3fc17d1e617b499fcbad9ad056aa8c124f1590b;hp=c94a424b5c9870fd502f8ff3d97d240d8fb8bcd1;hpb=be42d54170ca40d8d52e2c9fc8d888621585d6cf;p=osm%2FPOL.git diff --git a/osm_policy_module/common/lcm_client.py b/osm_policy_module/common/lcm_client.py index c94a424..e78420d 100644 --- a/osm_policy_module/common/lcm_client.py +++ b/osm_policy_module/common/lcm_client.py @@ -21,7 +21,6 @@ # For those usages not covered by the Apache License, Version 2.0 please # contact: bdiaz@whitestack.com or glavado@whitestack.com ## -import asyncio import datetime import json import logging @@ -40,12 +39,9 @@ class LcmClient: Client to communicate with LCM through the message bus. """ - def __init__(self, config: Config, loop=None): + def __init__(self, config: Config): self.db_client = CommonDbClient(config) self.msg_bus = MessageBusClient(config) - if not loop: - loop = asyncio.get_event_loop() - self.loop = loop async def scale( self, nsr_id: str, scaling_group_name: str, vnf_member_index: str, action: str