in hostfactory/host_provider/src/request_tracking_db.py [0:0]
def __init__(self, config, cluster_name, clock):
self.config = config
self.cluster_name = cluster_name
self.clock = clock
# initialize in constructor so that cyclecloud_provider can initialize this
# with the proper log_level. In tests, this will use the default.
self.logger = init_logging()
default_dir = os.getenv('HF_WORKDIR', '/var/tmp')
self.db_dir = config.get('symphony.hostfactory.db_path', default_dir)
self.requests_db = JsonStore('azurecc_requests.json', self.db_dir)