From c5099c639b41e9e09a77f9ad800975d6fda37102 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 27 Nov 2020 15:44:41 +0100 Subject: [PATCH] fix ha --- network/fortinet/fortiauthenticator/snmp/mode/ha.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network/fortinet/fortiauthenticator/snmp/mode/ha.pm b/network/fortinet/fortiauthenticator/snmp/mode/ha.pm index f1ddd9591..e4cdcced8 100644 --- a/network/fortinet/fortiauthenticator/snmp/mode/ha.pm +++ b/network/fortinet/fortiauthenticator/snmp/mode/ha.pm @@ -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;