fix(cgi-bin): add short host name to get_status response

main
Tsu-ba-me 4 years ago
parent 4fe11050e8
commit 4fa8073efe
  1. 6
      cgi-bin/get_status

@ -83,14 +83,16 @@ else
# Array index 0 is node 1, index 1 is node 2. # Array index 0 is node 1, index 1 is node 2.
$hash->{anvil_state} = "optimal"; $hash->{anvil_state} = "optimal";
$hash->{hosts}->[0] = { $hash->{hosts}->[0] = {
host_uuid => $node1_uuid, host_uuid => $node1_uuid,
host_name => $node1_host_name,
'state' => "offline", 'state' => "offline",
state_percent => 0, state_percent => 0,
state_message => "message_0222,!!host_name!".$node1_host_name."!!", state_message => "message_0222,!!host_name!".$node1_host_name."!!",
maintenance_mode => 'undefined', maintenance_mode => 'undefined',
}; };
$hash->{hosts}->[1] = { $hash->{hosts}->[1] = {
host_uuid => $node2_uuid, host_uuid => $node2_uuid,
host_name => $node2_host_name,
'state' => "offline", 'state' => "offline",
state_percent => 0, state_percent => 0,
state_message => "message_0222,!!host_name!".$node2_host_name."!!", state_message => "message_0222,!!host_name!".$node2_host_name."!!",

Loading…
Cancel
Save