mirror of https://github.com/apache/cloudstack.git
bug 5871: Correcting the ostypeid and ostypename returned by the listIsos
This commit is contained in:
parent
0a03ca6721
commit
26fc22160c
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue