From 2530d2b30d03f2ef523db02e6c48e55acd1c34bc Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Wed, 26 May 2021 18:44:11 -0400 Subject: [PATCH] fix(cgi-bin): rename nodes->hosts in get_shared_storage --- cgi-bin/get_shared_storage | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cgi-bin/get_shared_storage b/cgi-bin/get_shared_storage index 13a12e83..35552e2d 100755 --- a/cgi-bin/get_shared_storage +++ b/cgi-bin/get_shared_storage @@ -137,7 +137,7 @@ ORDER BY $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { mount_point => $mount_point }}); $file_system->{mount_point} = $mount_point; - $file_system->{nodes} = []; + $file_system->{hosts} = []; my $nodes = [$node1_uuid, $node2_uuid]; if ($dr1_uuid) { @@ -152,7 +152,7 @@ ORDER BY }}); if (exists $anvil->data->{raw}{file_systems}{$mount_point}{nodes}{$host_uuid}) { - push @{$file_system->{nodes}}, { + push @{$file_system->{hosts}}, { host_uuid => $host_uuid, host_name => $anvil->data->{raw}{file_systems}{$mount_point}{nodes}{$host_uuid}{host_name}, # \1 will be transformed to the JSON boolean "true" by the JSON module. @@ -164,7 +164,7 @@ ORDER BY } else { - push @{$file_system->{nodes}}, { + push @{$file_system->{hosts}}, { host_uuid => $host_uuid, host_name => $anvil->data->{hosts}{host_uuid}{$host_uuid}{host_name}, # \0 will be transformed to the JSON boolean "false" by the JSON module.