Skip to content

Commit def5f83

Browse files
authored
Fix http_access_log_combined config json parse command (#562)
1 parent b03cc08 commit def5f83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

snmp/http_access_log_combined

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ my $config;
226226
if ( -f $config_file && !-r $config_file ) {
227227
die( $config_file . ' is not readable' );
228228
} elsif ( -f $config_file ) {
229-
$config = decode_json( read_file($config_file) );
229+
my $raw_config = read_file($config_file);
230+
$config = decode_json($raw_config);
230231
if ( ref($config) ne 'HASH' ) {
231232
die( '"' . ref($config) . '" is the base ref type for the config instead of HASH' );
232233
}

0 commit comments

Comments
 (0)