mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
(core) json format for statefile format (#4164)
This commit is contained in:
parent
1fa1f336c2
commit
b7f33d699a
@ -113,7 +113,7 @@ sub check_options {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$self->{statefile_format} = 'dumper';
|
$self->{statefile_format} = 'json';
|
||||||
if (defined($options{option_results}->{statefile_format}) && $options{option_results}->{statefile_format} ne '' &&
|
if (defined($options{option_results}->{statefile_format}) && $options{option_results}->{statefile_format} ne '' &&
|
||||||
$options{option_results}->{statefile_format} =~ /^(?:dumper|json|storable)$/) {
|
$options{option_results}->{statefile_format} =~ /^(?:dumper|json|storable)$/) {
|
||||||
$self->{statefile_format} = $options{option_results}->{statefile_format};
|
$self->{statefile_format} = $options{option_results}->{statefile_format};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user