]> git.proxmox.com Git - qemu-server.git/commit
fix #2344: ignore cloudinit in replication check
authorMira Limbeck <m.limbeck@proxmox.com>
Fri, 27 Sep 2019 14:22:01 +0000 (16:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Oct 2019 19:39:05 +0000 (21:39 +0200)
commit21e1ee7b324554354f5a6623ad51858bb08e94ad
treeeec0acd3e6295884103905f209251b0d14db32f8
parentd9123ef5b9198064caf71f785b7ef329988aa979
fix #2344: ignore cloudinit in replication check

When adding a cloudinit disk it does not contain media=cdrom until it is
actually created. This means the check in check_replication fails to
detect cloudinit and it is recognized as normal disk. Then parse_volname
fails because it does not match the vm-$vmid-XYZ format. To fix this we
now check explicitly if the volname matches cloudinit and if so, return
early.

Additionally 2 small cleanups replacing cloudinit regexes with the
same check for volname matches cloudinit.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
PVE/API2/Qemu.pm