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.koe...@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 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel