This commit is contained in:
ahmadbilalkhalid 2019-08-28 21:05:43 +05:00
commit 59dd365dd5
8 changed files with 15 additions and 15 deletions

5
helper.py Normal file → Executable file
View 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"))