From: Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Date: Tue, 19 Jun 2012 15:19:21 +0000 (+0200)
Subject: be more explicit when a slice IP can't be found
X-Git-Tag: nodemanager-2.1-2~13
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=d3f2e6478c8e0553bb3babcb8ec3795fff21becf;p=nodemanager.git

be more explicit when a slice IP can't be found
---

diff --git a/sshsh b/sshsh
index dfa03c0..b7a0264 100755
--- a/sshsh
+++ b/sshsh
@@ -18,4 +18,6 @@ if [ -n "$verbose" ]; then
     echo "========== end /var/lib/libvirt/dnsmasq/default.leases"
 fi
 
+[ -z "$IP" ] && { echo "No IP found" ; exit 1; }
+
 exec ssh -o StrictHostKeyChecking=no root@$IP "$@"