mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Remove the priority checks from the code
- We do not use it anymore
This commit is contained in:
parent
3cc0915a01
commit
8edeca179b
@ -991,7 +991,6 @@ Configurable, StateListener<State, VirtualMachine.Event, VirtualMachine> {
|
||||
final RedundantState prevState = router.getRedundantState();
|
||||
if (router.getState() != State.Running) {
|
||||
router.setRedundantState(RedundantState.UNKNOWN);
|
||||
router.setIsPriorityBumpUp(false);
|
||||
updated = true;
|
||||
} else {
|
||||
final String privateIP = router.getPrivateIpAddress();
|
||||
@ -1012,13 +1011,12 @@ Configurable, StateListener<State, VirtualMachine.Event, VirtualMachine> {
|
||||
s_logger.warn("Unable to update router " + router.getHostName() + "'s status");
|
||||
}
|
||||
RedundantState state = RedundantState.UNKNOWN;
|
||||
boolean isBumped = router.getIsPriorityBumpUp();
|
||||
if (answer != null && answer.getResult()) {
|
||||
state = answer.getState();
|
||||
isBumped = answer.isBumped();
|
||||
} else {
|
||||
s_logger.info("Agent response doesn't seem to be correct ==> " + answer.getResult());
|
||||
}
|
||||
router.setRedundantState(state);
|
||||
router.setIsPriorityBumpUp(isBumped);
|
||||
updated = true;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user