The method will be extended to include other HA-relevant settings from
datacenter.cfg.
Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
}
# return cluster wide enforced HA settings
-sub get_ha_settings {
+sub get_datacenter_settings {
my ($self) = @_;
- return $self->{plug}->get_ha_settings();
+ return $self->{plug}->get_datacenter_settings();
}
sub get_static_node_stats {
}
# return cluster wide enforced HA settings
-sub get_ha_settings {
+sub get_datacenter_settings {
my ($self) = @_;
my $datacenterconfig = eval { cfs_read_file('datacenter.cfg') };
my ($shutdown, $reboot) = $haenv->is_node_shutdown();
- my $dc_ha_cfg = $haenv->get_ha_settings();
+ my $dc_ha_cfg = $haenv->get_datacenter_settings();
my $shutdown_policy = $dc_ha_cfg->{shutdown_policy} // 'conditional';
if ($shutdown) { # don't log this on service restart, only on node shutdown
}
# return cluster wide enforced HA settings
-sub get_ha_settings {
+sub get_datacenter_settings {
my ($self) = @_;
my $datacenterconfig = $self->{hardware}->read_datacenter_conf();