Am 12.05.23 um 14:40 schrieb Aaron Lauterer:
> +         vm_config => get_patched_config(111, {
> +             ide0 => 'local-lvm:vm-111-disk-10,format=raw,size=4G',
> +             pending => {
> +                 scsi0 => 'local-zfs:vm-111-disk-0,size=103M',
> +                 snapshots => {},
> +             },

I was wondering why you would need this. In the last patch, you call
PVE::QemuServer::foreach_volid($conf->{pending}) and I think that
auto-vivifies $conf->{pending}->{snapshots}. Another reason to extend
the function instead of calling it with a non-full config ;)


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to