]> git.proxmox.com Git - pve-ha-manager.git/blobdiff - src/PVE/HA/Manager.pm
wrap possible problematic cfs_read_file calls in eval
[pve-ha-manager.git] / src / PVE / HA / Manager.pm
index 25a7398d732303cb223203ac6ba6caac452520d5..2933926ae47ed49006d743bfd7702d3a3577bc13 100644 (file)
@@ -328,7 +328,8 @@ sub update_crm_commands {
     my ($haenv, $ms, $ns, $ss) = ($self->{haenv}, $self->{ms}, $self->{ns}, $self->{ss});
 
     my $cmdlist = $haenv->read_crm_commands();
-    
+    return if !defined($cmdlist);
+
     foreach my $cmd (split(/\n/, $cmdlist)) {
        chomp $cmd;