]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/Tools.pm
allow workers to count warnings and finish tasks in a WARNINGS state
[pve-common.git] / src / PVE / Tools.pm
index 2a91a92f423ebd150a9a088cd153a3a29554fdd2..16ae3d2b4cdf282d8c7a238904dc93a036a08e9f 100644 (file)
@@ -1156,6 +1156,8 @@ sub upid_read_status {
            return 'OK';
        } elsif ($line =~ m/^TASK ERROR: (.+)$/) {
            return $1;
+       } elsif ($line =~ m/^TASK (WARNINGS: \d+)$/) {
+           return $1;
        } else {
            return "unexpected status";
        }