Fix review comments

master
Sasini Sandamali 5 months ago
parent a5ada00e29
commit 82a7ea3213

@ -129,14 +129,9 @@ public class GrafanaRequestHandlerUtil {
log.error(errMsg);
throw new RefererNotValid(errMsg);
}
GrafanaConfiguration configuration;
try {
configuration = GrafanaConfigurationManager.getInstance().getGrafanaConfiguration();
} catch (GrafanaManagementException e) {
String msg = "Error occurred while retrieving Grafana configuration";
log.error(msg, e);
throw e;
}
GrafanaConfiguration configuration = GrafanaConfigurationManager.getInstance().getGrafanaConfiguration();
boolean dashboardIntegrationConfig = configuration.getValidationConfig().getDashboardIntegration();
GrafanaPanelIdentifier panelIdentifier = GrafanaUtil.getPanelIdentifierFromReferer(referer);
if (!dashboardIntegrationConfig) {

Loading…
Cancel
Save