]> mj.ucw.cz Git - bex.git/commitdiff
bex prun: DONE can be received even for non-running machines
authorMartin Mares <mj@ucw.cz>
Tue, 25 Feb 2014 09:50:54 +0000 (10:50 +0100)
committerMartin Mares <mj@ucw.cz>
Tue, 25 Feb 2014 09:50:54 +0000 (10:50 +0100)
This can happen e.g. after receiving LOCKED on the whole machine.

lib/bin/bex-prun

index e1ae42ea999e424a4cf9ec9eb14cee2d22193f62..592bcbc5d7d7298d18d339ecdf0291d3604c6f21 100755 (executable)
@@ -90,7 +90,8 @@ while (keys %running || @machines) {
                next;
        }
        if (!defined $running{$mach}) {
-               $ui->err("Received status message <$_> for a machine which does not run");
+               $ui->err("Received status message <$_> for a machine which does not run")
+                       unless $stat eq 'DONE';
                next;
        }
        $running{$mach} = $stat;