mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixed issue in policy delegation executor
This commit is contained in:
parent
2331b61bdc
commit
fbd697edb0
@ -133,8 +133,7 @@ public class PolicyAdministratorPointImpl implements PolicyAdministratorPoint {
|
||||
|
||||
TaskInfo.TriggerInfo triggerInfo = new TaskInfo.TriggerInfo();
|
||||
|
||||
triggerInfo.setIntervalMillis(0);
|
||||
triggerInfo.setRepeatCount(1);
|
||||
triggerInfo.setRepeatCount(0);
|
||||
|
||||
Map<String, String> properties = new HashMap<>();
|
||||
properties.put(PolicyManagementConstants.TENANT_ID, String.valueOf(tenantId));
|
||||
|
||||
@ -107,12 +107,12 @@ public class PolicyEvaluationTestCase extends BasePolicyManagementDAOTest {
|
||||
|
||||
log.debug("Re-enforcing policy started...!");
|
||||
|
||||
int sixe = policies.size();
|
||||
int size = policies.size();
|
||||
|
||||
sortPolicies(policies);
|
||||
int x = 0;
|
||||
for (Policy policy : policies) {
|
||||
policy.setPriorityId(sixe - x);
|
||||
policy.setPriorityId(size - x);
|
||||
x++;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user