projects
/
osm
/
POL.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updates for Python 3.10 and Ubuntu 22.04
[osm/POL.git]
/
osm_policy_module
/
autoscaling
/
service.py
diff --git
a/osm_policy_module/autoscaling/service.py
b/osm_policy_module/autoscaling/service.py
index
33472fd
..
fd96da3
100644
(file)
--- a/
osm_policy_module/autoscaling/service.py
+++ b/
osm_policy_module/autoscaling/service.py
@@
-22,7
+22,6
@@
# For those usages not covered by the Apache License, Version 2.0 please
# contact: bdiaz@whitestack.com or glavado@whitestack.com
##
# 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
import datetime
import json
import logging
@@
-50,14
+49,11
@@
log = logging.getLogger(__name__)
class AutoscalingService:
class AutoscalingService:
- def __init__(self, config: Config
, loop=None
):
+ def __init__(self, config: Config):
self.conf = config
self.conf = config
- if not loop:
- loop = asyncio.get_event_loop()
- self.loop = loop
self.db_client = CommonDbClient(config)
self.db_client = CommonDbClient(config)
- self.mon_client = MonClient(config
, loop=self.loop
)
- self.lcm_client = LcmClient(config
, loop=self.loop
)
+ self.mon_client = MonClient(config)
+ self.lcm_client = LcmClient(config)
async def configure_scaling_groups(self, nsr_id: str, vnf_member_index=None):
"""
async def configure_scaling_groups(self, nsr_id: str, vnf_member_index=None):
"""