Yaniv Bronhaim has uploaded a new change for review.

Change subject: Adding RHEV to visible compute resources
......................................................................

Adding RHEV to visible compute resources

In satellite ovirt provider is named RHEV

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1134384
Change-Id: I1376e595a3f5030fbef7c7f3e185f8e1eda6d264
Signed-off-by: Yaniv Bronhaim <ybron...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/foreman/ForemanHostProviderProxy.java
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/78/32278/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/foreman/ForemanHostProviderProxy.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/foreman/ForemanHostProviderProxy.java
index 7a282f8..5904bd8 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/foreman/ForemanHostProviderProxy.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/foreman/ForemanHostProviderProxy.java
@@ -6,6 +6,7 @@
 import java.io.PrintWriter;
 import java.net.HttpURLConnection;
 import java.net.URL;
+import java.net.URLEncoder;
 import java.nio.charset.StandardCharsets;
 import java.util.ArrayList;
 import java.util.Arrays;
@@ -61,7 +62,7 @@
     private static final String HOST_GROUPS_QUERY = HOST_GROUPS_ENTRY_POINT + 
"?" + JSON_FORMAT;
 
     private static final String COMPUTE_RESOURCES_HOSTS_ENTRY_POINT = 
API_ENTRY_POINT
-            + "/compute_resources?search=oVirt";
+            + "/compute_resources?search=" + URLEncoder.encode("oVirt|RHEV");
 
     private static final String DISCOVERED_HOSTS = "/discovered_hosts";
     private static final String DISCOVERED_HOSTS_ENTRY_POINT = API_ENTRY_POINT 
+ DISCOVERED_HOSTS;


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1376e595a3f5030fbef7c7f3e185f8e1eda6d264
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: Yaniv Bronhaim <ybron...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to