* Fixed second variable replacement bug, re issue #338.

Signed-off-by: digimer <mkelly@alteeve.ca>
main
digimer 1 year ago
parent be290bf561
commit 6a7c9923ad
  1. 8
      scancore-agents/scan-server/scan-server

@ -902,10 +902,10 @@ DELETED - Marks a server as no longer existing
my $say_ram = $server_configured_ram eq $server_ram_in_use ? "scan_server_alert_0014" : "scan_server_alert_0015";
my $variables = {
server => $server_name,
old_configured_ram_short => $anvil->Convert->bytes_to_human_readable({'bytes' => $server_configured_ram}),
old_configured_ram_bytes => $anvil->Convert->add_commas({number => $server_configured_ram}),
new_configured_ram_short => $anvil->Convert->bytes_to_human_readable({'bytes' => $old_server_configured_ram}),
new_configured_ram_bytes => $anvil->Convert->add_commas({number => $old_server_configured_ram}),
old_configured_ram_short => $anvil->Convert->bytes_to_human_readable({'bytes' => $old_server_configured_ram}),
old_configured_ram_bytes => $anvil->Convert->add_commas({number => $old_server_configured_ram}),
new_configured_ram_short => $anvil->Convert->bytes_to_human_readable({'bytes' => $server_configured_ram}),
new_configured_ram_bytes => $anvil->Convert->add_commas({number => $server_configured_ram}),
};
$anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 1, key => $say_ram, variables => $variables});
$anvil->Alert->register({alert_level => "notice", message => $say_ram, variables => $variables, set_by => $THIS_FILE});

Loading…
Cancel
Save