diff --git a/data/model/sqlalchemybridge.py b/data/model/sqlalchemybridge.py index 5e5ba670c..df622e381 100644 --- a/data/model/sqlalchemybridge.py +++ b/data/model/sqlalchemybridge.py @@ -30,7 +30,7 @@ def gen_sqlalchemy_metadata(peewee_model_list): all_indexes = set(meta.indexes) columns = [] - for field in meta.get_fields(): + for field in meta.sorted_fields: alchemy_type = None col_args = [] col_kwargs = {} diff --git a/util/config/validator.py b/util/config/validator.py index 1e8846646..412f3ebb2 100644 --- a/util/config/validator.py +++ b/util/config/validator.py @@ -37,8 +37,9 @@ def get_storage_providers(config): try: for name, parameters in storage_config.items(): - drivers[name] = (parameters[0], get_storage_driver(parameters)) + drivers[name] = (parameters[0], get_storage_driver(None, parameters)) except TypeError: + logger.exception('Missing required storage configuration provider') raise Exception('Missing required storage configuration parameter(s): %s' % name) return drivers