diff --git a/PVE/CLI/pvenode.pm b/PVE/CLI/pvenode.pm index 647fad19..1989e8b3 100644 --- a/PVE/CLI/pvenode.pm +++ b/PVE/CLI/pvenode.pm @@ -165,7 +165,9 @@ our $cmddef = { list => [ 'PVE::API2::Tasks', 'node_tasks', [], { node => $nodename }, sub { my ($data, $schema, $options) = @_; foreach my $task (@$data) { - if ($task->{status} ne 'OK' && $task->{status} ne 'RUNNING') { + if (!defined($task->{status})) { + $task->{status} = 'UNKNOWN'; + } elsif ($task->{status} ne 'OK' && $task->{status} ne 'RUNNING') { $task->{status} = 'ERROR'; } }