Skip to content

Commit f739fd4

Browse files
committed
Address reviews
1 parent 5f4c765 commit f739fd4

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

server/src/main/java/com/cloud/deploy/DeploymentPlanningManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -844,9 +844,9 @@ private boolean isHostGuestOsCompatible(VirtualMachineProfile vmProfile, HostVO
844844

845845
List<HostVO> incompatibleHosts = _hostDao.findHostsWithGuestOsRulesThatDidNotMatchOsOfGuestVm(templateGuestOSName);
846846

847-
boolean isIncompatibleHost = incompatibleHosts.stream().noneMatch(incompatibleHost -> incompatibleHost.getId() == host.getId());
847+
boolean isHostCompatible = incompatibleHosts.stream().noneMatch(incompatibleHost -> incompatibleHost.getId() == host.getId());
848848

849-
if (!isIncompatibleHost) {
849+
if (!isHostCompatible) {
850850
logger.debug("The template [{}] is incompatible with the host [{}] due to the guest OS rule [{}].", template, host, guestOsRule);
851851
return false;
852852
}

ui/public/locales/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,6 +1219,8 @@
12191219
"label.guestnetwork": "Guest Network",
12201220
"label.guestnetworkid": "Network ID",
12211221
"label.guestnetworkname": "Network name",
1222+
"label.guestosasrule": "Guest OS as rule",
1223+
"label.guestosrule": "Guest OS rule",
12221224
"label.gueststartip": "Guest start IP",
12231225
"label.guest.vlan": "Guest VLAN",
12241226
"label.guestvlanrange": "VLAN range(s)",

0 commit comments

Comments
 (0)