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

[Xen-devel] [OSSTEST PATCH 2/6] ts-logs-capture: Introduce @allguests containing even non-running



Nothing looks at this yet.

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

diff --git a/ts-logs-capture b/ts-logs-capture
index d16372f2..88b19658 100755
--- a/ts-logs-capture
+++ b/ts-logs-capture
@@ -39,7 +39,7 @@ if (!$ho) {
     exit 0;
 }
 
-our @guests;
+our (@allguests, @guests);
 
 sub find_guests () {
     my $sth= $dbh_tests->prepare(<<END);
@@ -59,12 +59,13 @@ END
            1;
        }) {
            logm("cannot find domid: $@");;
-           next;
        }
 
-       push @guests, $gho;
+       push @allguests, $gho;
     }
     $sth->finish();
+
+    @guests = grep { defined $_->{Domid} } @allguests;
 }
 
 sub try_fetch_logs ($$) {
-- 
2.11.0




 


Rackspace

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