From 10269bf74b3ac8afc935a31d84f3780fa13fe9b4 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Fri, 21 May 2021 17:57:44 -0400 Subject: [PATCH] fix(cgi-bin): remove server_host_index from get_servers response --- cgi-bin/get_servers | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/cgi-bin/get_servers b/cgi-bin/get_servers index 64c86f60..1a962622 100755 --- a/cgi-bin/get_servers +++ b/cgi-bin/get_servers @@ -109,29 +109,11 @@ WHERE # Ignore deleted servers. next if $server_state eq "DELETED"; - my $server_host_index = undef; - if ($server_state ne "shut off") - { - if ($server_host_uuid eq $node1_uuid) - { - $server_host_index = 0; - } - elsif ($server_host_uuid eq $node2_uuid) - { - $server_host_index = 1; - } - else - { - # Is it on DR? - } - } - push @{$hash->{servers}}, { server_uuid => $server_uuid, server_name => $server_name, server_state => $server_state, - server_host_uuid => $server_state eq "shut off" ? undef : $server_host_uuid, - server_host_index => $server_host_index, + server_host_uuid => $server_state eq "shut off" ? undef : $server_host_uuid }; } }