Yair Zaslavsky has uploaded a new change for review.

Change subject: tools: Fix notifier to safely handle MAIL_SERVER
......................................................................

tools: Fix notifier to safely handle MAIL_SERVER

Change-Id: Ica12831cbb0b1ccae3d1f93c5d67e3ef9e5ae024
signed-off-by: Yair Zaslavsky <[email protected]>
---
M backend/manager/tools/src/main/shell/engine-notifier.sh
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/72/13772/1

diff --git a/backend/manager/tools/src/main/shell/engine-notifier.sh 
b/backend/manager/tools/src/main/shell/engine-notifier.sh
index e4e81f0..b292904 100755
--- a/backend/manager/tools/src/main/shell/engine-notifier.sh
+++ b/backend/manager/tools/src/main/shell/engine-notifier.sh
@@ -84,6 +84,7 @@
     die "Error: \$MAIL_SERVER is not defined, please check for this in 
configuration file $CONF_FILE\n" 6
 fi
 
+MAIL_SERVER=`echo $MAIL_SERVER | cut -d ':' -f 1`
 nslookup $MAIL_SERVER &>/dev/null
 if [ $? -ne 0 ] ; then
   die "Error: \$MAIL_SERVER ($MAIL_SERVER) must contain resolvable address"


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

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