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

[OSSTEST PATCH 14/16] reporting: Minor fix to reporting of tasks with no subtask



subtask can be NULL.  If so, do not include it.

This change fixes a warning and a minor cosmetic defect.

Signed-off-by: Ian Jackson <iwj@xxxxxxxxxxxxxx>
---
 Osstest/Executive.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Osstest/Executive.pm b/Osstest/Executive.pm
index e3ab1dc3..d95d848d 100644
--- a/Osstest/Executive.pm
+++ b/Osstest/Executive.pm
@@ -427,7 +427,7 @@ sub report_rogue_task_description ($) {
     my $info= "rogue task ";
     $info .= " $arow->{type} $arow->{refkey}";
     $info .= " ($arow->{comment})" if defined $arow->{comment};
-    $info .= " $arow->{subtask}";
+    $info .= " $arow->{subtask}" if defined $arow->{subtask};
     $info .= " (user $arow->{username})";
     return $info;
 }
-- 
2.20.1




 


Rackspace

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