fix(cgi-bin): transform maintenance_mode to JSON booleans in get_status

main
Tsu-ba-me 4 years ago
parent e1c3064303
commit c749441e3b
  1. 3
      cgi-bin/get_status

@ -149,7 +149,8 @@ WHERE
scan_cluster_node_maintenance_mode => $scan_cluster_node_maintenance_mode,
}});
$hash->{nodes}->[$i]->{maintenance_mode} = $scan_cluster_node_maintenance_mode ? 1 : 0;
# Ensure the maintenance_mode is set to a value that can be converted to JSON booleans.
$hash->{nodes}->[$i]->{maintenance_mode} = $scan_cluster_node_maintenance_mode ? \1 : \0;
if ($scan_cluster_node_cluster_member)
{
$hash->{nodes}->[$i]->{'state'} = "online";

Loading…
Cancel
Save