[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 03/21] ts-logs-capture: Do not try to capture logs of hosts not allocated



Little significant change with existing non-broken flights etc.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 ts-logs-capture | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/ts-logs-capture b/ts-logs-capture
index a429bb76..83234f6f 100755
--- a/ts-logs-capture
+++ b/ts-logs-capture
@@ -32,7 +32,12 @@ if (!$mjobdb->jobdb_enable_log_capture) {
 
 our ($whhost) = @ARGV;
 $whhost ||= 'host';
-our $ho= selecthost($whhost);
+
+our $ho= selecthost($whhost, 1);
+if (!$ho) {
+    logm("host $whhost not specified, not capturing logs");
+    exit 0;
+}
 
 our @guests;
 
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.