b
This commit is contained in:
parent
726839f4c6
commit
59dd365dd5
8 changed files with 15 additions and 15 deletions
5
helper.py
Normal file → Executable file
5
helper.py
Normal file → Executable file
|
|
@ -5,12 +5,9 @@ from ucloud_common.vm import VmPool, VMStatus
|
|||
from ucloud_common.host import HostPool, HostStatus
|
||||
from ucloud_common.request import RequestEntry, RequestPool, RequestType
|
||||
|
||||
from etcd3_wrapper import Etcd3Wrapper
|
||||
from decouple import config
|
||||
from config import etcd_client as client
|
||||
|
||||
client = Etcd3Wrapper(
|
||||
host=config("ETCD_HOST"), port=int(config("ETCD_PORT"))
|
||||
)
|
||||
vm_pool = VmPool(client, config("VM_PREFIX"))
|
||||
host_pool = HostPool(client, config("HOST_PREFIX"))
|
||||
request_pool = RequestPool(client, config("REQUEST_PREFIX"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue