mirror of
git://git.proxmox.com/git/pve-network.git
synced 2025-04-30 19:27:11 +02:00
ipam: fix-up check for transition
forgot to squash this into the original patch.. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
078c0ef035
commit
c64dd31bf9
|
@ -32,7 +32,7 @@ PVE::Cluster::cfs_register_file(
|
||||||
sub {
|
sub {
|
||||||
my ($filename, $data) = @_;
|
my ($filename, $data) = @_;
|
||||||
# TODO: remove below with PVE 9+, add a pve8to9 check to allow doing so.
|
# 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
|
# 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";
|
unlink $ipamdb_file_legacy or $!{ENOENT} or warn "failed to unlink legacy IPAM DB - $!\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue