(core) json format for statefile format (#4164)

This commit is contained in:
qgarnier 2023-01-23 10:10:01 +00:00 committed by GitHub
parent 1fa1f336c2
commit b7f33d699a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 '' &&
$options{option_results}->{statefile_format} =~ /^(?:dumper|json|storable)$/) {
$self->{statefile_format} = $options{option_results}->{statefile_format};