Signed-off-by: Fabian Ebner <f.eb...@proxmox.com>
---
 PVE/API2/Nodes.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index e58d9c10..1efba772 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -1810,7 +1810,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) {
-- 
2.20.1



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to