This commit is contained in:
garnier-quentin 2020-11-27 15:44:41 +01:00
parent 4c8bd540fd
commit c5099c639b
1 changed files with 2 additions and 2 deletions

View File

@ -39,8 +39,8 @@ sub custom_status_output {
sub custom_status_calc {
my ($self, %options) = @_;
$self->{result_values}->{ha_status} = $options{old_datas}->{$self->{instance} . '_ha_status'};
$self->{result_values}->{ha_status_last} = $options{new_datas}->{$self->{instance} . '_ha_status'};
$self->{result_values}->{ha_status_last} = $options{old_datas}->{$self->{instance} . '_ha_status'};
$self->{result_values}->{ha_status} = $options{new_datas}->{$self->{instance} . '_ha_status'};
if (!defined($options{old_datas}->{$self->{instance} . '_ha_status'})) {
$self->{error_msg} = 'buffer creation';
return -2;