Fixing formating issues

revert-70aa11f8
geethkokila 7 years ago
parent 5f71313af1
commit 1655b512b0

@ -41,6 +41,7 @@ public class DeviceDetailsRetrieverTask implements Task {
private String oppConfig;
private OperationMonitoringTaskConfig operationMonitoringTaskConfig;
private boolean executeForTenants = false;
private final String IS_CLOUD = "is.cloud";
@Override
public void setProperties(Map<String, String> map) {
@ -60,7 +61,7 @@ public class DeviceDetailsRetrieverTask implements Task {
@Override
public void execute() {
if(System.getProperty("is.cloud") != null && Boolean.parseBoolean(System.getProperty("is.cloud"))){
if(System.getProperty(IS_CLOUD) != null && Boolean.parseBoolean(System.getProperty(IS_CLOUD))){
executeForTenants = true;
}
if(executeForTenants){

@ -44,6 +44,7 @@ public class MonitoringTask implements Task {
Map<String, String> properties;
private boolean executeForTenants = false;
private final String IS_CLOUD = "is.cloud";
@Override
@ -61,7 +62,7 @@ public class MonitoringTask implements Task {
if (log.isDebugEnabled()) {
log.debug("Monitoring task started to run.");
}
if(System.getProperty("is.cloud") != null && Boolean.parseBoolean(System.getProperty("is.cloud"))){
if(System.getProperty(IS_CLOUD) != null && Boolean.parseBoolean(System.getProperty(IS_CLOUD))){
executeForTenants = true;
}
if(executeForTenants) {

Loading…
Cancel
Save