summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Lamprecht <t.lamprecht@proxmox.com>2024-11-18 16:51:09 +0100
committerThomas Lamprecht <t.lamprecht@proxmox.com>2024-11-18 16:51:11 +0100
commitc64dd31bf9d30d7a8b2bf04e34d57c00baacb4e6 (patch)
tree4f17f00ae2115adbdc70433f39d996a684e10f44 /src
parent078c0ef03570a0304fed30f0557ab8ef18fbf329 (diff)
ipam: fix-up check for transition
forgot to squash this into the original patch.. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Diffstat (limited to 'src')
-rw-r--r--src/PVE/Network/SDN/Ipams/PVEPlugin.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PVE/Network/SDN/Ipams/PVEPlugin.pm b/src/PVE/Network/SDN/Ipams/PVEPlugin.pm
index efc1841..742f1b1 100644
--- a/src/PVE/Network/SDN/Ipams/PVEPlugin.pm
+++ b/src/PVE/Network/SDN/Ipams/PVEPlugin.pm
@@ -32,7 +32,7 @@ PVE::Cluster::cfs_register_file(
sub {
my ($filename, $data) = @_;
# TODO: remove below with PVE 9+, add a pve8to9 check to allow doing so.
- if (-e $ipamdb_file_legacy && $ipamdb_file) {
+ if (-e $ipamdb_file_legacy && -e $ipamdb_file) {
# only clean-up if we succeeded to write the new path at least once
unlink $ipamdb_file_legacy or $!{ENOENT} or warn "failed to unlink legacy IPAM DB - $!\n";
}