[pve-devel] applied: [PATCH common] JSONSchema: sort keys when dumping config

Thomas Lamprecht t.lamprecht at proxmox.com
Wed May 15 14:12:25 CEST 2019


On 4/17/19 8:56 AM, Thomas Lamprecht wrote:
> Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
> ---
>  src/PVE/JSONSchema.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm
> index 51ef3ab..f0192c2 100644
> --- a/src/PVE/JSONSchema.pm
> +++ b/src/PVE/JSONSchema.pm
> @@ -1590,7 +1590,7 @@ sub dump_config {
>  
>      my $data = '';
>  
> -    foreach my $k (keys %$cfg) {
> +    foreach my $k (sort keys %$cfg) {
>  	$data .= "$k: $cfg->{$k}\n";
>      }
>  
> 

applied




More information about the pve-devel mailing list