(plugin) network::fortinet::fortigate::restapi - mode system fix not … (#4668)

This commit is contained in:
qgarnier 2023-10-02 11:00:22 +01:00 committed by GitHub
parent 848295f0c2
commit 842f00d558
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -49,9 +49,9 @@ sub set_counters {
$self->{maps_counters_type} = [
{ name => 'vdoms', type => 3, cb_prefix_output => 'prefix_vdom_output', cb_long_output => 'vdom_long_output', indent_long_output => ' ', message_multiple => 'All vdom systems are ok',
group => [
{ name => 'cpu', type => 0, display_short => 0, skipped_code => { -10 => 1 } },
{ name => 'memory', type => 0, display_short => 0, skipped_code => { -10 => 1 } },
{ name => 'session', type => 0, display_short => 0, skipped_code => { -10 => 1 } }
{ name => 'cpu', type => 0, skipped_code => { -10 => 1 } },
{ name => 'memory', type => 0, skipped_code => { -10 => 1 } },
{ name => 'session', type => 0, skipped_code => { -10 => 1 } }
]
}
];
@ -110,6 +110,10 @@ sub manage_selection {
get_param => ['global=1']
);
if (ref($resources) ne 'ARRAY') {
$resources = [$resources];
}
$self->{vdoms} = {};
foreach my $resource (@$resources) {
next if (defined($self->{option_results}->{filter_vdom}) && $self->{option_results}->{filter_vdom} ne '' &&