]> xenbits.xensource.com Git - osstest.git/commitdiff
ts-host-ping-check: Do not run if host is being reused
authorIan Campbell <ian.campbell@citrix.com>
Wed, 1 Apr 2015 13:07:09 +0000 (14:07 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 2 Apr 2015 10:37:43 +0000 (11:37 +0100)
Assume it was done at install time.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
ts-host-ping-check

index 74c008cbfc36b998cade5aa1f42e4f418f90db84..ca8920cc594e1e9b625e79c80adf6d7ef7387ca3 100755 (executable)
@@ -26,6 +26,8 @@ our ($whhost) = @ARGV;
 $whhost ||= 'host';
 our $ho= selecthost($whhost);
 
+exit 0 if $ho->{SharedReady};
+
 $_ = `ping -D -i 0.2 -c 100 $ho->{Ip} | tee /dev/stderr`;
 
 m/\b([0-9.]+)% packet loss\b/ or die "$_ ?";