weizhouapache commented on code in PR #6845:
URL: https://github.com/apache/cloudstack/pull/6845#discussion_r1008075113
##########
api/src/main/java/com/cloud/deploy/DataCenterDeployment.java:
##########
@@ -124,4 +127,30 @@ public String toString() {
"migrationPlan");
}
+ @Override
+ public void addHostPriority(Long hostId, HostPriority priority) {
+ Integer currentPriority = hostPriorities.get(hostId);
+ if (currentPriority == null) {
+ currentPriority = DEFAULT_HOST_PRIORITY;
+ }
+ if (HostPriority.HIGH.equals(priority)) {
+ hostPriorities.put(hostId, currentPriority + 1);
Review Comment:
with the new code, the priorities are number (positive, negative or 0), not
HIGH/LOW/NORMAL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]