]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
host allocation: eliminate an undefined print
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 14 Feb 2013 13:08:22 +0000 (13:08 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 14 Feb 2013 13:08:22 +0000 (13:08 +0000)
ts-hosts-allocate-Executive

index 77d8a8c7715f7b6955fb9e5f14864acbf2522b40..0d434c96b734cbbd294999ff5445e095b21fda4e 100755 (executable)
@@ -447,7 +447,9 @@ sub hid_recurse ($$) {
        $duration= $cand->{Duration} if
            !defined($duration) ||
            defined($cand->{Duration}) && $cand->{Duration} >= $duration;
-        $previously_failed++ if $cand->{MostRecentStatus} eq 'fail';
+        $previously_failed++ if
+           defined $cand->{MostRecentStatus} &&
+           $cand->{MostRecentStatus} eq 'fail';
     }
     my $duration_rightaway_adjust= 0;