Signed-off-by: Arthur Clement <aclement at linagora.com>
---
scripts/ovirt-functions | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions
index 7b95ea8..9e96f7b 100644
--- a/scripts/ovirt-functions
+++ b/scripts/ovirt-functions
@@ -186,7 +186,7 @@ find_srv()
local search=$(grep search /etc/resolv.conf)
search=${search#search }
for d in $domain $search; do
- dnsreply=$(dig +short -t srv _$1._$2.$d)
+ dnsreply=$(dig +short -t srv _$1._$2.$d | sed s/.$// )
rc=$?
if [ $rc -eq 0 ]; then
set _ $dnsreply; shift
--
1.7.2.1