Fix for bug 1396 - Error creating dashboard with same name in two different users
[osm/MON.git] / osm_mon / dashboarder / service.py
index 10508e4..3f83550 100644 (file)
@@ -52,6 +52,7 @@ class DashboarderService:
             dashboard_path = '{}/dashboarder/templates/project_scoped.json'.format(mon_path[0])
             if project_id not in dashboard_uids:
                 project_name = project['name']
+                self.grafana.create_grafana_folders(project_name)
                 self.grafana.create_dashboard(project_id, project_name,
                                               dashboard_path)
                 log.debug('Created dashboard for Project: %s', project_id)