util.config.db: ensure blob locations sync on boot
This commit is contained in:
parent
4614419e53
commit
23759a1592
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue