Yair Zaslavsky has uploaded a new change for review.

Change subject: core: Removing not needed code
......................................................................

core: Removing not needed code

The following patch fixes redunant
host string calculation

Change-Id: Ia0270a2150e9d5e51745f027b4223f02ed11aece
Signed-off-by: Yair Zaslavsky <[email protected]>
---
M 
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/dns/DnsSRVLocator.java
1 file changed, 0 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/76/19276/1

diff --git 
a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/dns/DnsSRVLocator.java
 
b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/dns/DnsSRVLocator.java
index 3ccccf3..6017989 100644
--- 
a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/dns/DnsSRVLocator.java
+++ 
b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/dns/DnsSRVLocator.java
@@ -381,11 +381,6 @@
                 host = host.substring(0, host.length() - 1);
             }
             StringBuilder sb = new StringBuilder(host);
-            //Remove the "root DNS" part from the host name
-            //if exists as "." at the end of the host name
-            if (host.lastIndexOf(".") == host.length() -1) {
-                host = host.substring(0, host.length() - 1);
-            }
             sb.append(":").append(port);
             return new SrvRecord(priority, weight, sb.toString());
         } catch (InputMismatchException ex) {


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia0270a2150e9d5e51745f027b4223f02ed11aece
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to