Skip to content

Commit f194adb

Browse files
yichi.luDaan Hoogland
authored andcommitted
Remove the comparison between GuestOSCategoryVO.CATEGORY_NONE and guestOSCategory.getName() to make OS category of None to be a valid option.
Signed-off-by: Daan Hoogland <dhoogland@schubergphilis.com>
1 parent 6b70a6d commit f194adb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/resource/ResourceManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ public Host updateHost(UpdateHostCmd cmd) throws NoTransitionException {
12641264
GuestOSCategoryVO guestOSCategory = _guestOSCategoryDao.findById(guestOSCategoryId);
12651265
Map<String, String> hostDetails = _hostDetailsDao.findDetails(hostId);
12661266

1267-
if (guestOSCategory != null && !GuestOsCategory.CATEGORY_NONE.equalsIgnoreCase(guestOSCategory.getName())) {
1267+
if (guestOSCategory != null) {
12681268
// Save a new entry for guest.os.category.id
12691269
hostDetails.put("guest.os.category.id", String.valueOf(guestOSCategory.getId()));
12701270
} else {

0 commit comments

Comments
 (0)