/* (non-Javadoc)
* @see com.vmware.aurora.vc.VcVirtualmachine#getVmHAConfig()
*/
@Override
public VmHAConfig getVmHAConfig() {
VmHAConfig vmHAConfig = null;
// Since the vm cluster information is stored with the cluster, we have to retrieve it
VcCluster cluster = getResourcePool().getVcCluster();
vmHAConfig = cluster.getConfig().getDefaultVmHAConfig();
DasVmConfigInfo[] dasInfo = cluster.getVmConfigInfo();
if (dasInfo != null) {
for (DasVmConfigInfo vmConfig : dasInfo) {
if (vmConfig.getKey().equals(getMoRef())) {
vmHAConfig = new VmHAConfig(vmConfig, vmHAConfig);
}
}
}
return vmHAConfig;
}