Fix typo: it's decode_json() not json_decode().

This commit is contained in:
Daniel Nichter
2013-05-13 16:48:39 -07:00
parent 64e24385cf
commit ab3cd36393

View File

@@ -6842,7 +6842,7 @@ sub agent_status {
# Get the agent's info.
if ( -f "$lib_dir/agent" ) {
my $agent = json_decode(slurp("$lib_dir/agent"));
my $agent = decode_json(slurp("$lib_dir/agent"));
foreach my $attrib ( qw(uuid hostname username) ) {
_info("Agent $attrib: " . ($agent->{$attrib} || ''));
}
@@ -6865,7 +6865,7 @@ sub agent_status {
SERVICE:
foreach my $service_file ( glob "$lib_dir/services/*" ) {
my $service = eval {
json_decode(slurp($service_file));
decode_json(slurp($service_file));
};
if ( $EVAL_ERROR ) {
_warn("$service_file is corrupt");