From: Gianpietro Lavado Date: Tue, 3 Dec 2019 15:16:14 +0000 (+0000) Subject: Fix bug in osm_mon path in Dashboarder service X-Git-Tag: v7.0.0rc1~6 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FMON.git;a=commitdiff_plain;h=6fb6948c285ed9c52a3ca0d020e172929af5fa48 Fix bug in osm_mon path in Dashboarder service Change-Id: I40fffb2d1a4c5ad8459fdbda5823e05ed4c6bdd7 Signed-off-by: Gianpietro Lavado --- diff --git a/osm_mon/dashboarder/service.py b/osm_mon/dashboarder/service.py index 74812b5..8008f7d 100644 --- a/osm_mon/dashboarder/service.py +++ b/osm_mon/dashboarder/service.py @@ -47,7 +47,7 @@ class DashboarderService: project_id = project['_id'] # Collect Project IDs for periodical dashboard clean-up osm_resource_uids.append(project_id) - dashboard_path = '{}/dashboarder/templates/project_scoped.json'.format(mon_path) + dashboard_path = '{}/dashboarder/templates/project_scoped.json'.format(mon_path[0]) if project_id not in dashboard_uids: project_name = project['name'] grafana.create_dashboard(project_id, project_name, @@ -61,7 +61,7 @@ class DashboarderService: nsrs = self.common_db.get_nsrs() for nsr in nsrs: nsr_id = nsr['_id'] - dashboard_path = '{}/dashboarder/templates/ns_scoped.json'.format(mon_path) + dashboard_path = '{}/dashboarder/templates/ns_scoped.json'.format(mon_path[0]) # Collect NS IDs for periodical dashboard clean-up osm_resource_uids.append(nsr_id) # Check if the NSR's VNFDs contain metrics