mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Use the method to retrieve the reporting host
This commit is contained in:
parent
9da0bc8de0
commit
a45d2d7cb0
@ -177,9 +177,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…
Reference in New Issue
Block a user