]> git.proxmox.com Git - pve-container.git/commit
Fix: check if compression_map format is undefined
authorAlwin Antreich <a.antreich@proxmox.com>
Thu, 23 May 2019 07:13:40 +0000 (09:13 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 23 May 2019 07:26:56 +0000 (09:26 +0200)
commit539660e2bd3e9a557a8c0ce7e17865377bf269b9
tree09a3796d8cd69ca72741c6e75ae64b03c6a1bdc0
parent8f4bd6245b25218d05dbf1267a85728f447a13d4
Fix: check if compression_map format is undefined

We want to check for an supported compression type, but the check was
not correct as this only works if both sides are scalars, but an
assignment to an array is always "truthy", so actually check explicitly
if the compression type is supported before.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
Co-authored-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/LXC/Create.pm