]> git.proxmox.com Git - pve-manager.git/commitdiff
nodes: startall: correctly handle warning status for delayed task
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 12 May 2021 12:32:52 +0000 (14:32 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 24 Jun 2021 06:50:38 +0000 (08:50 +0200)
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/API2/Nodes.pm

index d9e0849c65220016586527afcbbb93e2ae23d5af..76b0d85a6cc2f3e0ee991cd7b433a4c74da6c7b9 100644 (file)
@@ -1708,7 +1708,7 @@ __PACKAGE__->register_method ({
                        }
 
                        my $status = PVE::Tools::upid_read_status($upid);
-                       if ($status eq 'OK') {
+                       if (!PVE::Tools::upid_status_is_error($status)) {
                            # use default delay to reduce load
                            my $delay = defined($d->{up}) ? int($d->{up}) : $default_delay;
                            if ($delay > 0) {