allow ucloud-api to also be able work without ceph i.e use filesystem

This commit is contained in:
Ahmed Bilal 2019-09-07 12:38:58 +02:00
commit 08cbecebdb
4 changed files with 31 additions and 5 deletions

View file

@ -1,4 +1,17 @@
import logging
from etcd3_wrapper import Etcd3Wrapper
from decouple import config
logging.basicConfig(
level=logging.DEBUG,
filename="log.txt",
filemode="a",
format="%(asctime)s: %(levelname)s - %(message)s",
datefmt="%d-%b-%y %H:%M:%S",
)
WITHOUT_CEPH = config("WITHOUT_CEPH", False, cast=bool)
etcd_client = Etcd3Wrapper(host=config("ETCD_URL"))