sureshanaparti commented on code in PR #9787:
URL: https://github.com/apache/cloudstack/pull/9787#discussion_r1802982065
##########
server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java:
##########
@@ -1781,18 +1788,54 @@ private Map<String, String>
createParamsForRemoveClonedInstance(String vcenter,
return params;
}
- private HostVO selectInstanceConversionKVMHostInCluster(Cluster
destinationCluster, Long convertInstanceHostId) {
+ private HostVO selectKVMHostForImportingInCluster(Cluster
destinationCluster, Long importInstanceHostId) {
+ if (importInstanceHostId != null) {
+ HostVO selectedHost = hostDao.findById(importInstanceHostId);
+ if (selectedHost == null) {
+ String msg = String.format("Cannot find host with ID %s",
importInstanceHostId);
Review Comment:
```suggestion
String msg = String.format("Cannot find host with ID %s to
import VM", importInstanceHostId);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]