Source:
<code>private void refreshVmStats() { if (Config.<Boolean> getValue(ConfigValues.DebugTimerLogging)) { log.debug("vds::refreshVmList entered"); } VDSReturnValue vdsReturnValue; if (!_vdsManager.getRefreshStatistics()) { vdsReturnValue = getResourceManager().runVdsCommand( VDSCommandType.List, new VdsIdAndVdsVDSCommandParametersBase(_vds)); } else { vdsReturnValue = getResourceManager().runVdsCommand( VDSCommandType.GetAllVmStats, new VdsIdAndVdsVDSCommandParametersBase(_vds)); } _runningVms = (Map<Guid, VmInternalData>) vdsReturnValue.getReturnValue(); if (vdsReturnValue.getSucceeded()) { List<VM> running = checkVmsStatusChanged(); proceedWatchdogEvents(); proceedBalloonCheck(); proceedDownVms(); proceedGuaranteedMemoryCheck(); processExternallyManagedVms(); updateRepository(running); refreshCommitedMemory(); if (!VmDeviceCommonUtils.isOldClusterVersion(_vds.getVdsGroupCompatibilityVersion())) { handleVmDeviceChange(); } prepareGuestAgentNetworkDevicesForUpdate(); updateLunDisks(); } else { RuntimeException callException = vdsReturnValue.getExceptionObject(); if (callException != null) { if (callException instanceof VDSErrorException) { log.errorFormat("Failed vds listing, vds = {0} : {1}, error = {2}", _vds.getId(), _vds.getName(), vdsReturnValue.getExceptionString()); } else if (callException instanceof VDSNetworkException) { _saveVdsDynamic = _vdsManager.handleNetworkException((VDSNetworkException) callException, _vds); } else if (callException instanceof VDSProtocolException) { log.errorFormat("Failed vds listing, vds = {0} : {1}, error = {2}", _vds.getId(), _vds.getName(), vdsReturnValue.getExceptionString()); } throw callException; } else { <START> log.errorFormat("{0} failed with no exception!", vdsReturnValue.toString()); <END> } } }</code><technical_language>vdsReturnValue.toString() return, need else</technical_language>

Target:
private void refreshVmStats() { if (Config.<Boolean> getValue(ConfigValues.DebugTimerLogging)) { log.debug("vds::refreshVmList entered"); } VDSReturnValue vdsReturnValue; VDSCommandType commandType = _vdsManager.getRefreshStatistics() ? VDSCommandType.GetAllVmStats : VDSCommandType.List; vdsReturnValue = getResourceManager().runVdsCommand(commandType, new VdsIdAndVdsVDSCommandParametersBase(_vds)); _runningVms = (Map<Guid, VmInternalData>) vdsReturnValue.getReturnValue(); if (vdsReturnValue.getSucceeded()) { List<VM> running = checkVmsStatusChanged(); proceedWatchdogEvents(); proceedBalloonCheck(); proceedDownVms(); proceedGuaranteedMemoryCheck(); processExternallyManagedVms(); updateRepository(running); refreshCommitedMemory(); if (!VmDeviceCommonUtils.isOldClusterVersion(_vds.getVdsGroupCompatibilityVersion())) { handleVmDeviceChange(); } prepareGuestAgentNetworkDevicesForUpdate(); updateLunDisks(); } else { RuntimeException callException = vdsReturnValue.getExceptionObject(); if (callException != null) { if (callException instanceof VDSErrorException) { log.errorFormat("Failed vds listing, vds = {0} : {1}, error = {2}", _vds.getId(), _vds.getName(), vdsReturnValue.getExceptionString()); } else if (callException instanceof VDSNetworkException) { _saveVdsDynamic = _vdsManager.handleNetworkException((VDSNetworkException) callException, _vds); } else if (callException instanceof VDSProtocolException) { log.errorFormat("Failed vds listing, vds = {0} : {1}, error = {2}", _vds.getId(), _vds.getName(), vdsReturnValue.getExceptionString()); } throw callException; } else { log.errorFormat("{0} failed with no exception!", commandType.name()); } } }