If host allocation failed, or our dependency jobs failed, then we
won't have allocated a host. The host runvar will not be set.
In this case, we want to do nothing.
But we forgot to pass $noneok to selecthost.
Signed-off-by: Ian Jackson <iwj@xenproject.org>
sub act_final () {
if (!@ARGV) {
- $ho = selecthost($whhost);
+ $ho = selecthost($whhost, 1);
return unless $ho;
host_update_lifecycle_info($ho, 'final');
} elsif ("@ARGV" eq "--post-test-ok") {