This commit implements the methods PUT and POST in order to insert and update alarms. Story: 2004008 Task: 30270 Change-Id: I773e651165b3654684b95463167fc565aef1ffa4 Co-authored-by: Sun Austin <austin.sun@intel.com> Signed-off-by: Mario Alfredo Carrillo Arevalo <mario.alfredo.c.arevalo@intel.com> Signed-off-by: Sun Austin <austin.sun@intel.com>
17 lines
250 B
Python
17 lines
250 B
Python
#
|
|
# Copyright (c) 2018 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
|
|
import sys
|
|
from oslo_config import cfg
|
|
cfg.CONF(sys.argv[1:], project='fm')
|
|
from fm.db import migration
|
|
CONF = cfg.CONF
|
|
|
|
|
|
def main():
|
|
migration.db_sync()
|