Use the method to retrieve the reporting host

feature/appm-store/pbac
Saad Sahibjan 5 years ago
parent 7599d97e68
commit 8b5e336986

@ -176,9 +176,8 @@ public class DeviceInformationManagerImpl implements DeviceInformationManager {
} }
private void publishEvents(Device device, DeviceInfo deviceInfo) { private void publishEvents(Device device, DeviceInfo deviceInfo) {
String reportingHost = System.getProperty(DeviceManagementConstants.Report String reportingHost = HttpReportingUtil.getReportingHost();
.REPORTING_EVENT_HOST); if (!StringUtils.isBlank(reportingHost) && isPublishingEnabledForTenant()) {
if (reportingHost != null && !reportingHost.isEmpty() && isPublishingEnabledForTenant()) {
try { try {
DeviceDetailsWrapper deviceDetailsWrapper = new DeviceDetailsWrapper(); DeviceDetailsWrapper deviceDetailsWrapper = new DeviceDetailsWrapper();
deviceDetailsWrapper.setDevice(device); deviceDetailsWrapper.setDevice(device);

Loading…
Cancel
Save