resolved dashboard issue 38/10138/1 release-v9.0-start v9.0.0rc1
authorUbuntu <Atul.agarwal@altran.com>
Thu, 17 Dec 2020 16:17:23 +0000 (16:17 +0000)
committerUbuntu <Atul.agarwal@altran.com>
Thu, 17 Dec 2020 16:18:11 +0000 (16:18 +0000)
Change-Id: I285eb6728f337e5ec13efcc27aa49cc3ab3fad0d
Signed-off-by: Ubuntu <Atul.agarwal@altran.com>
osm_mon/dashboarder/service.py

index 902f25f..1e81c8a 100644 (file)
@@ -72,7 +72,7 @@ class DashboarderService:
                 try:
                     vnfd = self.common_db.get_vnfd_by_id(vnf_profile['vnfd-id'])
                     # If there are metrics, create dashboard (if exists)
-                    if vnfd and 'monitoring-parameter' in vnfd:
+                    if vnfd and 'monitoring-parameter' in vnfd["vdu"][0]:
                         if nsr_id not in dashboard_uids:
                             nsr_name = nsr['name']
                             project_id = nsr["_admin"]["projects_read"][0]