X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Fcore%2Fdatabase.py;h=eab4bed2d9172f0aad699226ce9eb9f39171d70c;hb=75512477988ae5e287433c6c859c61de1bc82318;hp=7e4bf7c1543567c06974bf353ec85e5bd0173ff6;hpb=f271068982efc8ce8b25ddd2ecef7b1bad06fb19;p=osm%2FMON.git diff --git a/osm_mon/core/database.py b/osm_mon/core/database.py index 7e4bf7c..eab4bed 100644 --- a/osm_mon/core/database.py +++ b/osm_mon/core/database.py @@ -27,7 +27,7 @@ import logging from peewee import * from playhouse.sqlite_ext import SqliteExtDatabase -from osm_mon.plugins.OpenStack.settings import Config +from osm_mon.core.settings import Config log = logging.getLogger(__name__) cfg = Config.instance() @@ -48,9 +48,8 @@ class VimCredentials(BaseModel): user = CharField() password = CharField() tenant_name = CharField() - config = TextField() - region_name = CharField() - endpoint_type = CharField() + config = TextField(default='{}') + class Alarm(BaseModel): alarm_id = CharField()