]> git.proxmox.com Git - pve-common.git/commitdiff
SectionConfig: sort values return by lookup_types
authorDietmar Maurer <dietmar@proxmox.com>
Sat, 30 Apr 2016 10:01:20 +0000 (12:01 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 30 Apr 2016 10:01:20 +0000 (12:01 +0200)
They are use to generate type enums in the API.

src/PVE/SectionConfig.pm

index 441e026fb1b3f98c75b3ac93d6546e11c15325fd..3030f6018e024d804de705f3c29c204e6613f160 100644 (file)
@@ -203,7 +203,7 @@ sub lookup_types {
 
     my $pdata = $class->private();
     
-    return [ keys %{$pdata->{plugins}} ];
+    return [ sort keys %{$pdata->{plugins}} ];
 }
 
 sub decode_value {