From 76eb09393f9338e90c4d3de88343439df0387140 Mon Sep 17 00:00:00 2001 From: Digimer Date: Wed, 8 Sep 2021 01:03:29 -0400 Subject: [PATCH] Fixed a bug found in the last commit causing newly-added VGs to storage group membership to use the wrong UUID as the internal VG UUID. Signed-off-by: Digimer --- Anvil/Tools/Database.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Anvil/Tools/Database.pm b/Anvil/Tools/Database.pm index c7653153..6eb556ac 100644 --- a/Anvil/Tools/Database.pm +++ b/Anvil/Tools/Database.pm @@ -4747,8 +4747,8 @@ ORDER BY { # Closest yet! $smallest_difference = $difference; - $closest_internal_uuid = $scan_lvm_vg_internal_uuid; - $closest_scan_lvm_vg_uuid = $scan_lvm_vg_uuid; + $closest_scan_lvm_vg_uuid = $scan_lvm_vg_internal_uuid; + $closest_internal_uuid = $scan_lvm_vg_uuid; $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { smallest_difference => $anvil->Convert->add_commas({number => $smallest_difference})." (".$anvil->Convert->bytes_to_human_readable({'bytes' => $smallest_difference}).")", closest_internal_uuid => $closest_internal_uuid,