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

Ian Jackson posted 21 patches 6 years, 9 months ago
[Xen-devel] [OSSTEST PATCH 03/21] ts-logs-capture: Do not try to capture logs of hosts not allocated
Posted by Ian Jackson 6 years, 9 months ago
Little significant change with existing non-broken flights etc.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 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@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel