[pve-devel] [PATCH FOLLOW-UP ha-manager 1/2] config: use entire path to groups.cfg path in delete_group_config

Michael Köppl m.koeppl at proxmox.com
Tue Jul 22 18:54:27 CEST 2025


Prepend /etc/pve/ to the path, as is done for other read and write
functions for the groups.cfg file. Otherwise, removing the file does not
work.

Signed-off-by: Michael Köppl <m.koeppl at proxmox.com>
---
 src/PVE/HA/Config.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/PVE/HA/Config.pm b/src/PVE/HA/Config.pm
index 59bafd7..50d7972 100644
--- a/src/PVE/HA/Config.pm
+++ b/src/PVE/HA/Config.pm
@@ -235,8 +235,9 @@ sub read_group_config {
 }
 
 sub delete_group_config {
+    my $groups_config_file = "/etc/pve/$ha_groups_config";
 
-    unlink $ha_groups_config or die "failed to remove group config: $!\n";
+    unlink $groups_config_file or die "failed to remove group config: $!\n";
 }
 
 sub write_group_config {
-- 
2.47.2





More information about the pve-devel mailing list