fix issue: listHosts with hahost throws exception

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a206f423
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a206f423
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a206f423

Branch: refs/heads/4.2
Commit: a206f423a3851a4d090f58b05e2936dd68c528d0
Parents: a098878
Author: Wei Zhou <w.z...@leaseweb.com>
Authored: Tue Sep 24 11:59:05 2013 +0200
Committer: Wei Zhou <w.z...@leaseweb.com>
Committed: Tue Sep 24 11:59:05 2013 +0200

----------------------------------------------------------------------
 server/src/com/cloud/api/query/QueryManagerImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a206f423/server/src/com/cloud/api/query/QueryManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/api/query/QueryManagerImpl.java 
b/server/src/com/cloud/api/query/QueryManagerImpl.java
index 615e207..86276b3 100644
--- a/server/src/com/cloud/api/query/QueryManagerImpl.java
+++ b/server/src/com/cloud/api/query/QueryManagerImpl.java
@@ -1571,7 +1571,7 @@ public class QueryManagerImpl extends ManagerBase 
implements QueryService {
         }
 
         if (haHosts != null && haTag != null && !haTag.isEmpty()) {
-            sc.setJoinParameters("hostTagSearch", "tag", haTag);
+            sc.setParameters("tag", haTag);
         }
 
         // search host details by ids

Reply via email to