Yaniv Bronhaim has uploaded a new change for review.

Change subject: Remove suffix from mgmt address taken from the ComputerResource 
conf
......................................................................

Remove suffix from mgmt address taken from the ComputerResource conf

This parameter is used by ovirt-node and should include only fqdn or ip4
addr with port number or without. For example 10.35.1.85:8080

Change-Id: I5a40ca0b4870d1955b01d18c88df467b8da35fc4
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, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/83/35383/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 61d2ba3..9710de2 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
@@ -284,7 +284,7 @@
                 "            },\n" +
                 "           {\n" +
                 "                \"name\": \"management\",\n" +
-                "                \"value\": \"" + 
computeResource.getUrl().replaceAll("(http://|/api)", "") + "\",\n" +
+                "                \"value\": \"" + 
computeResource.getUrl().replaceAll("(http://|/api|/ovirt-engine)", "") + 
"\",\n" +
                 "                \"_destroy\": \"false\",\n" +
                 "                \"nested\": \"\"\n" +
                 "            }\n" +


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5a40ca0b4870d1955b01d18c88df467b8da35fc4
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