Fix review comments

pull/396/head
Sasini Sandamali 5 months ago
parent a5ada00e29
commit 82a7ea3213

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

Loading…
Cancel
Save