src/orion/core/utils/backward.py
def update_db_config(config):
    """Merge DB config back into storage config"""
    config.setdefault("storage", orion.core.config.storage.to_dict())
    if "database" in config:
        log.debug("Updating db config for backward compatibility")
        config["storage"] = {"type": "legacy"}
        config["storage"]["database"] = config.pop("database")
        log.debug(pprint.pformat(config["storage"]))
Merge DB config back into storage config
Merge DB config back into storage config
Merge DB config back into storage config
def update_db_config(config):
    config.setdefault("storage", orion.core.config.storage.to_dict())
    if "database" in config:
        log.debug("Updating db config for backward compatibility")
        config["storage"] = {"type": "legacy"}
        config["storage"]["database"] = config.pop("database")
        log.debug(pprint.pformat(config["storage"]))
def update_db_config ( config ) : config . setdefault ( "storage" , orion . core . config . storage . to_dict ( ) ) if "database" in config : log . debug ( "Updating db config for backward compatibility" ) config [ "storage" ] = { "type" : "legacy" } config [ "storage" ] [ "database" ] = config . pop ( "database" ) log . debug ( pprint . pformat ( config [ "storage" ] ) )
Merge DB config back into storage config
Merge DB config back into storage config
"""Merge DB config back into storage config"""
config