]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage/Plugin.pm
Fix #1913: get_vm_disk_number: clone plugindata to avoid side effects
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 13 Sep 2018 18:36:40 +0000 (20:36 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 14 Sep 2018 07:17:40 +0000 (09:17 +0200)
commitf4cc2c4afe950d79d0e19ab4456071df5e4758a8
tree46e9c60c4a8ad5a3058d87c41c7135b745015260
parent9dcf88bb274041b0612aa2f125c6227a2d23a40a
Fix #1913: get_vm_disk_number: clone plugindata to avoid side effects

Accessing a non-existing 'format' key in plugindata (e.g., in LvmThinPlugin),
created it by autovivication, thus breaking the fallback to the default value
'raw' upon any following access.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
PVE/Storage/Plugin.pm