fdcb8bad23
Note that this change does *not* enable the new data model by default, but does allow it to be used when a special environment variable is specified.
10 lines
340 B
Python
10 lines
340 B
Python
import os
|
|
import logging
|
|
|
|
from data.registry_model.registry_pre_oci_model import pre_oci_model
|
|
from data.registry_model.registry_oci_model import oci_model
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
registry_model = oci_model if os.getenv('OCI_DATA_MODEL') == 'true' else pre_oci_model
|
|
logger.debug('Using registry model `%s`', registry_model)
|