diff mbox series

[OSSTEST,1/6] host lifecycle: Use correct taskid column for runvar reconstruction

Message ID 20211004170654.21864-2-iwj@xenproject.org (mailing list archive)
State New, archived
Headers show
Series allocation / test fixes | expand

Commit Message

Ian Jackson Oct. 4, 2021, 5:06 p.m. UTC
t.taskid might be NULL since the task may have been deleted.

Signed-off-by: Ian Jackson <iwj@xenproject.org>
---
 Osstest/JobDB/Executive.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/Osstest/JobDB/Executive.pm b/Osstest/JobDB/Executive.pm
index 097c8d75b..c5db2691b 100644
--- a/Osstest/JobDB/Executive.pm
+++ b/Osstest/JobDB/Executive.pm
@@ -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