]> 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>
Fri, 14 Jun 2019 08:36:08 +0000 (10:36 +0200)
commit283d50d1200002e385334731ec7513b4b35567a0
tree5d82fb0859e1b450eecf9979134f2476d1f339f6
parent88c05a3f1e001b77d056a6a0a17f2d2fcc34833f
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>
(cherry picked from commit 539660e2bd3e9a557a8c0ce7e17865377bf269b9)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/LXC/Create.pm