bug 5871: Correcting the ostypeid and ostypename returned by the listIsos

This commit is contained in:
nit 2010-09-27 12:10:49 +05:30
parent 0a03ca6721
commit 26fc22160c
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ public class ListIsosCmd extends BaseCmd {
isoData.add(new Pair<String, Object>(BaseCmd.Properties.CROSS_ZONES.getName(), Boolean.valueOf(iso.isCrossZones()).toString()));
GuestOS os = getManagementServer().findGuestOSById(iso.getGuestOSId());
if(os != null) {
if(os != null && !iso.getName().startsWith("xs-tools")) {
isoData.add(new Pair<String, Object>(BaseCmd.Properties.OS_TYPE_ID.getName(), os.getId()));
isoData.add(new Pair<String, Object>(BaseCmd.Properties.OS_TYPE_NAME.getName(), os.getDisplayName()));
} else {