Adds granularity support in OpenStack vim config
[osm/MON.git] / osm_mon / core / database.py
index 7e4bf7c..eab4bed 100644 (file)
@@ -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()