]> git.proxmox.com Git - pve-ha-manager.git/blobdiff - src/PVE/HA/LRM.pm
move cfs update to common code
[pve-ha-manager.git] / src / PVE / HA / LRM.pm
index 0fc8acba23c6b13f06a75edc6b6e4b6f110f5790..afca084b7b38e1edf8915036e5b32d51ea84def7 100644 (file)
@@ -34,6 +34,7 @@ sub new {
        shutdown_errors => 0,
        # mode can be: active, reboot, shutdown, restart
        mode => 'active',
+       cluster_state_update => 0,
     }, $class;
 
     $self->set_local_status({ state =>         'wait_for_agent_lock' });   
@@ -219,6 +220,8 @@ sub do_one_iteration {
 
     $haenv->loop_start_hook();
 
+    $self->{cluster_state_update} = $haenv->cluster_state_update();
+
     my $res = $self->work();
 
     $haenv->loop_end_hook();