util.config.db: ensure blob locations sync on boot

This commit is contained in:
Jimmy Zelinskie 2017-03-22 21:53:23 -04:00
parent 4614419e53
commit 23759a1592

View file

@ -1,4 +1,4 @@
from data import model
from data import model, oci_model
def sync_database_with_config(config):
@ -7,3 +7,4 @@ def sync_database_with_config(config):
location_names = config.get('DISTRIBUTED_STORAGE_CONFIG', {}).keys()
if location_names:
model.image.ensure_image_locations(*location_names)
oci_model.blob.ensure_blob_locations(*location_names)