* Fixed a bug in Cluster->get_primary_host_uuid() where servers were not loaded before trying to calculate RAM use.

Signed-off-by: digimer <mkelly@alteeve.ca>
main
digimer 1 year ago
parent 4dc1b0e117
commit 458cb267da
  1. 1
      Anvil/Tools/Cluster.pm
  2. 1
      Anvil/Tools/Network.pm

@ -2603,6 +2603,7 @@ sub get_primary_host_uuid
my $node2_ram_in_use_by_servers = 0;
# Loop through servers.
$anvil->Database->get_servers({debug => $debug});
foreach my $server_name (sort {$a cmp $b} keys %{$anvil->data->{servers}{anvil_uuid}{$anvil_uuid}{server_name}})
{
my $server_uuid = $anvil->data->{servers}{anvil_uuid}{$anvil_uuid}{server_name}{$server_name}{server_uuid};

@ -1665,6 +1665,7 @@ sub get_company_from_mac
if ((not $company) && ($mac =~ /^52:54:00/))
{
$company = "KVM/qemu";
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { company => $company }});
}
return($company);

Loading…
Cancel
Save