]> git.proxmox.com Git - pve-manager.git/commit - PVE/CLI/pve7to8.pm
pve7to8: content-dirs check: skip paths that cannot be resolved
authorFriedrich Weber <f.weber@proxmox.com>
Thu, 15 Jun 2023 13:22:31 +0000 (15:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Jun 2023 16:26:34 +0000 (18:26 +0200)
commit2a7f4f7111b9e9d414808af11d627fab051ef1d5
treeb11441b5bfd2dd2760678bcb2069e7ec6f6db67b
parent1f8f027290410fc207656774a0276646536f3593
pve7to8: content-dirs check: skip paths that cannot be resolved

The current inequality check for content-dirs does not correctly
handle the case in which `abs_path` returns undef. This can result in
confusing warnings:

  storage [...] uses directory  for multiple content types [...]

Fix this by skipping paths for which `abs_path` returns undef. This
matches the behavior of the actual content-dirs check in PVE 8 [0].

[0]: https://git.proxmox.com/?p=pve-storage.git;a=commit;h=09f1f847a

Fixes: ea0a4f1943ffafe94282afc800d5720db45df198
Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
(cherry picked from commit 20fb9aa3f15f9d3ef89bfc3784d72a791c55b757)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/CLI/pve7to8.pm