]> xenbits.xensource.com Git - osstest.git/commitdiff
host lifecycle: Use correct taskid column for runvar reconstruction
authorIan Jackson <iwj@xenproject.org>
Mon, 4 Oct 2021 16:27:15 +0000 (17:27 +0100)
committerIan Jackson <iwj@xenproject.org>
Mon, 4 Oct 2021 16:27:15 +0000 (17:27 +0100)
t.taskid might be NULL since the task may have been deleted.

Signed-off-by: Ian Jackson <iwj@xenproject.org>
Osstest/JobDB/Executive.pm

index 097c8d75b60b3faed5a2f1f3d05dee6ef9cfa375..c5db2691bc2d91b83364e810f3570681291ccb23 100644 (file)
@@ -542,7 +542,7 @@ END
 
     my $scanq = $dbh_tests->prepare(<<END);
           SELECT h.flight, h.job, h.isprep, h.ident, h.stepno,
-                  t.live, t.taskid,
+                  t.live, h.taskid,
                   h2.lcseq later_notprep
             FROM host_lifecycle h
         LEFT JOIN host_lifecycle h2