[pve-devel] [PATCH v3 manager 4/5] pvenode: don't treat running tasks as failed

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed Jan 23 14:56:34 CET 2019


Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---

Notes:
    new in v3

 PVE/CLI/pvenode.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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





More information about the pve-devel mailing list