[config] setup default values to remove startup failures
This commit is contained in:
parent
40176d2eaf
commit
6d715e8348
1 changed files with 4 additions and 4 deletions
|
@ -25,13 +25,13 @@ etcd_wrapper_kwargs = {
|
||||||
|
|
||||||
etcd_client = Etcd3Wrapper(*etcd_wrapper_args, **etcd_wrapper_kwargs)
|
etcd_client = Etcd3Wrapper(*etcd_wrapper_args, **etcd_wrapper_kwargs)
|
||||||
|
|
||||||
host_pool = HostPool(etcd_client, env_vars.get('HOST_PREFIX'))
|
host_pool = HostPool(etcd_client, env_vars.get('HOST_PREFIX', "hosts"))
|
||||||
vm_pool = VmPool(etcd_client, env_vars.get('VM_PREFIX'))
|
vm_pool = VmPool(etcd_client, env_vars.get('VM_PREFIX', "vms"))
|
||||||
request_pool = RequestPool(etcd_client, env_vars.get('REQUEST_PREFIX'))
|
request_pool = RequestPool(etcd_client, env_vars.get('REQUEST_PREFIX', "requests"))
|
||||||
|
|
||||||
running_vms = []
|
running_vms = []
|
||||||
|
|
||||||
__storage_backend = env_vars.get("STORAGE_BACKEND")
|
__storage_backend = env_vars.get("STORAGE_BACKEND", "filesystem")
|
||||||
if __storage_backend == "filesystem":
|
if __storage_backend == "filesystem":
|
||||||
image_storage_handler = FileSystemBasedImageStorageHandler(vm_base=env_vars.get("VM_DIR"),
|
image_storage_handler = FileSystemBasedImageStorageHandler(vm_base=env_vars.get("VM_DIR"),
|
||||||
image_base=env_vars.get("IMAGE_DIR"))
|
image_base=env_vars.get("IMAGE_DIR"))
|
||||||
|
|
Loading…
Reference in a new issue