This commit is contained in:
Ahmed Bilal 2019-09-03 18:06:41 +02:00
commit f40d9c3f11
8 changed files with 14 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"))