[pve-devel] [PATCH common] JSONSchema: sort keys when dumping config
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Apr 17 08:56:23 CEST 2019
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";
}
--
2.20.1
More information about the pve-devel
mailing list