This is an automated email from the ASF dual-hosted git repository.
sureshanaparti pushed a commit to branch 4.22
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.22 by this push:
new 519715e81a6 Fix id in listguestosmapping search (#13082)
519715e81a6 is described below
commit 519715e81a65b9df4fa4ef589b2bfd2cd79f442e
Author: Suresh Kumar Anaparti <[email protected]>
AuthorDate: Mon May 4 14:41:35 2026 +0530
Fix id in listguestosmapping search (#13082)
---
server/src/main/java/com/cloud/server/ManagementServerImpl.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/src/main/java/com/cloud/server/ManagementServerImpl.java
b/server/src/main/java/com/cloud/server/ManagementServerImpl.java
index 4875002074c..470c968d0de 100644
--- a/server/src/main/java/com/cloud/server/ManagementServerImpl.java
+++ b/server/src/main/java/com/cloud/server/ManagementServerImpl.java
@@ -3033,7 +3033,7 @@ public class ManagementServerImpl extends
MutualExclusiveIdsManagerBase implemen
final String hypervisor = cmd.getHypervisor();
final String hypervisorVersion = cmd.getHypervisorVersion();
- //throw exception if hypervisor name is not passed, but version is
+ //throw exception if hypervisor name is not passed, but a version is
if (hypervisorVersion != null && (hypervisor == null ||
hypervisor.isEmpty())) {
throw new InvalidParameterValueException("Hypervisor version
parameter cannot be used without specifying a hypervisor : XenServer, KVM or
VMware");
}
@@ -3051,7 +3051,7 @@ public class ManagementServerImpl extends
MutualExclusiveIdsManagerBase implemen
final SearchCriteria<GuestOSHypervisorVO> sc = sb.create();
if (id != null) {
- sc.setParameters("id", SearchCriteria.Op.EQ, id);
+ sc.setParameters("id", id);
}
if (osTypeId != null) {