]> git.proxmox.com Git - qemu-server.git/commitdiff
fixup: shorter/conciser comment
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 16 May 2019 14:28:53 +0000 (16:28 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 16 May 2019 14:29:02 +0000 (16:29 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer.pm

index d6e065efcc7adc36619aace72a86edd4a3fc8f56..919c562c0073ebb7fd6c3ff18671931ac3053c4c 100644 (file)
@@ -6925,9 +6925,7 @@ sub clone_disk {
        if (drive_is_cloudinit($drive)) {
            $name = "vm-$newvmid-cloudinit";
            $snapname = undef;
-           # accept any format when cloning that's supported by QEMU_FORMAT_RE
-           # if it is not supported by QEMU_FORMAT_RE we do not reach here as
-           # it is recognized as cdrom, not cloudinit
+           # we only get here if it's supported by QEMU_FORMAT_RE, so just accept
            if ($dst_format ne 'raw') {
                $name .= ".$dst_format";
            }