Michael Pasternak has uploaded a new change for review.

Change subject: restapi: fix incorrect compare of different object types
......................................................................

restapi: fix incorrect compare of different object types

Change-Id: Ib206de5b38d95a90766426692e3185554d9bc249
Signed-off-by: Michael pasternak <mpast...@redhat.com>
---
M 
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendHostHookResource.java
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/63/15763/1

diff --git 
a/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendHostHookResource.java
 
b/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendHostHookResource.java
index f2f92d9..5066931 100644
--- 
a/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendHostHookResource.java
+++ 
b/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendHostHookResource.java
@@ -20,8 +20,9 @@
     }
 
     public Hook getHook(Hooks hooks) {
+        String hookId = guid.toString();
         for (Hook hook : hooks.getHooks()) {
-            if (hook.getId().equals(guid)) {
+            if (hook.getId().equals(hookId)) {
                 return hook;
             }
         }


-- 
To view, visit http://gerrit.ovirt.org/15763
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib206de5b38d95a90766426692e3185554d9bc249
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Michael Pasternak <mpast...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to