]> git.proxmox.com Git - pve-ha-manager.git/commitdiff
LRM shutdown request: propagate if we could not write out LRM status
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 5 Oct 2019 15:50:45 +0000 (17:50 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 5 Oct 2019 15:51:21 +0000 (17:51 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/LRM.pm

index 3b4a572b7b2fc87218079d624e511009ebf7c0ca..ea58ab8b5ee6a8ec048aa363497994521410acc1 100644 (file)
@@ -106,7 +106,7 @@ sub shutdown_request {
 
     $self->{shutdown_request} = 1;
 
-    eval { $self->update_lrm_status(); };
+    eval { $self->update_lrm_status() or die "not quorate?\n"; };
     if (my $err = $@) {
        $self->log('err', "unable to update lrm status file - $err");
     }