mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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>
This commit is contained in:
parent
6b70a6db94
commit
f194adb2de
@ -1264,7 +1264,7 @@ public class ResourceManagerImpl extends ManagerBase implements ResourceManager,
|
|||||||
GuestOSCategoryVO guestOSCategory = _guestOSCategoryDao.findById(guestOSCategoryId);
|
GuestOSCategoryVO guestOSCategory = _guestOSCategoryDao.findById(guestOSCategoryId);
|
||||||
Map<String, String> hostDetails = _hostDetailsDao.findDetails(hostId);
|
Map<String, String> hostDetails = _hostDetailsDao.findDetails(hostId);
|
||||||
|
|
||||||
if (guestOSCategory != null && !GuestOsCategory.CATEGORY_NONE.equalsIgnoreCase(guestOSCategory.getName())) {
|
if (guestOSCategory != null) {
|
||||||
// Save a new entry for guest.os.category.id
|
// Save a new entry for guest.os.category.id
|
||||||
hostDetails.put("guest.os.category.id", String.valueOf(guestOSCategory.getId()));
|
hostDetails.put("guest.os.category.id", String.valueOf(guestOSCategory.getId()));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user