fault/fm-rest-api/fm/fm/cmd/dbsync.py

19 lines
256 B
Python

#
# Copyright (c) 2018 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
import sys
from oslo_config import cfg
from fm.db import migration
CONF = cfg.CONF
def main():
cfg.CONF(sys.argv[1:], project='fm')
migration.db_sync()