[pve-devel] applied-series: [PATCH qemu-server 1/3] api: clone: add missing sort to hash

Fiona Ebner f.ebner at proxmox.com
Wed Dec 4 13:00:04 CET 2024


Am 04.12.24 um 11:30 schrieb Alexander Zeidler:
> When cloning was repeatedly attempted, the error message indicated a
> different unsupported volume each time. The hash is now sorted to always
> mention the same volume as long as it has not been fixed.
> 
> Signed-off-by: Alexander Zeidler <a.zeidler at proxmox.com>
> ---
>  PVE/API2/Qemu.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
> index 53ff7092..fd08fae0 100644
> --- a/PVE/API2/Qemu.pm
> +++ b/PVE/API2/Qemu.pm
> @@ -3874,7 +3874,7 @@ __PACKAGE__->register_method({
>  	    my $fullclone = {};
>  	    my $vollist = [];
>  
> -	    foreach my $opt (keys %$oldconf) {
> +	    foreach my $opt (sort keys %$oldconf) {
>  		my $value = $oldconf->{$opt};
>  
>  		# do not copy snapshot related info

applied series, thanks! Squashed in a change to replace "foreach" with
"for" here while we're already touching the line.




More information about the pve-devel mailing list