]> git.proxmox.com Git - qemu-server.git/commitdiff
clone_disk : cloudinit drive: don't clone snapname
authorAlexandre Derumier <aderumier@odiso.com>
Fri, 7 Dec 2018 06:45:55 +0000 (07:45 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 11 Dec 2018 08:43:04 +0000 (09:43 +0100)
we don't snapshot cloudinit drive,

this fix "qm clone <vmid> <targetvmid> --snapname mysnap" when a cloudinit drive exist

PVE/QemuServer.pm

index a162db95c59bc6be82b6a25a61f67938c5f873e4..1e9dec61ed6ddc284d23f507a2aa4bd29e23847f 100644 (file)
@@ -6655,6 +6655,7 @@ sub clone_disk {
        my $name = undef;
        if (drive_is_cloudinit($drive)) {
            $name = "vm-$newvmid-cloudinit";
+           $snapname = undef;
            # cloudinit only supports raw and qcow2 atm:
            if ($dst_format eq 'qcow2') {
                $name .= '.qcow2';