fix(cgi-bin): rename node->host in response of get_anvils

main
Tsu-ba-me 4 years ago
parent 8d1d49e807
commit adbf7b790e
  1. 8
      cgi-bin/get_anvils

@ -55,10 +55,10 @@ foreach my $anvil_uuid (keys %{$anvil->data->{anvils}{anvil_uuid}})
push @{$json_hash->{anvils}}, {
anvil_name => $anvil_name,
anvil_uuid => $anvil_uuid,
nodes => [
{ node_name => $anvil_node1_host_name, node_uuid => $anvil_node1_host_uuid },
{ node_name => $anvil_node2_host_name, node_uuid => $anvil_node2_host_uuid },
{ node_name => $anvil_dr1_host_name, node_uuid => $anvil_dr1_host_uuid }
hosts => [
{ host_name => $anvil_node1_host_name, host_uuid => $anvil_node1_host_uuid },
{ host_name => $anvil_node2_host_name, host_uuid => $anvil_node2_host_uuid },
{ host_name => $anvil_dr1_host_name, host_uuid => $anvil_dr1_host_uuid }
]
};
}

Loading…
Cancel
Save