mirror of https://github.com/apache/cloudstack.git
bug 11239: bugy database contains a cluster whose hypervisor type is Null, then listhypervisorscmd return a None hypervisortype. Fixed in the API, don't return None
status 11239: resovled fixed
This commit is contained in:
parent
d73bf096c0
commit
4999511a2d
|
|
@ -46,6 +46,7 @@ import com.cloud.exception.ResourceUnavailableException;
|
|||
import com.cloud.hypervisor.Hypervisor.HypervisorType;
|
||||
import com.cloud.offering.DiskOffering;
|
||||
import com.cloud.offering.ServiceOffering;
|
||||
import com.cloud.storage.Storage.ImageFormat;
|
||||
import com.cloud.template.VirtualMachineTemplate;
|
||||
import com.cloud.user.Account;
|
||||
import com.cloud.user.UserContext;
|
||||
|
|
|
|||
|
|
@ -4563,7 +4563,8 @@ public class ManagementServerImpl implements ManagementServer {
|
|||
} else {
|
||||
List<ClusterVO> clustersForZone = _clusterDao.listByZoneId(zoneId);
|
||||
for (ClusterVO cluster : clustersForZone) {
|
||||
result.add(cluster.getHypervisorType().toString());
|
||||
if (cluster.getHypervisorType() != HypervisorType.None)
|
||||
result.add(cluster.getHypervisorType().toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue