From 4fa8073efe221b081cad62a092334668e3a335a1 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Thu, 27 May 2021 15:42:17 -0400 Subject: [PATCH] fix(cgi-bin): add short host name to get_status response --- cgi-bin/get_status | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cgi-bin/get_status b/cgi-bin/get_status index 6e36ebee..92c1e95e 100755 --- a/cgi-bin/get_status +++ b/cgi-bin/get_status @@ -83,14 +83,16 @@ else # Array index 0 is node 1, index 1 is node 2. $hash->{anvil_state} = "optimal"; $hash->{hosts}->[0] = { - host_uuid => $node1_uuid, + host_uuid => $node1_uuid, + host_name => $node1_host_name, 'state' => "offline", state_percent => 0, state_message => "message_0222,!!host_name!".$node1_host_name."!!", maintenance_mode => 'undefined', }; $hash->{hosts}->[1] = { - host_uuid => $node2_uuid, + host_uuid => $node2_uuid, + host_name => $node2_host_name, 'state' => "offline", state_percent => 0, state_message => "message_0222,!!host_name!".$node2_host_name."!!",