]> git.proxmox.com Git - pve-ha-manager.git/commitdiff
simulator: fix random output of manager status
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 11 Sep 2015 14:57:17 +0000 (16:57 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 15 Sep 2015 06:31:45 +0000 (08:31 +0200)
Tell Data::Dumper to sort the keys before dumping. That fixes
the manager status mess of jumping keys.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Sim/RTHardware.pm

index 56a2364f4a132f2ebfd9882fdf2d2830321222ba..54f6fbaace25d2ecab4834acbfc201a919a41fcd 100644 (file)
@@ -7,6 +7,7 @@ use strict;
 use warnings;
 use POSIX qw(strftime EINTR);
 use Data::Dumper;
+$Data::Dumper::Sortkeys = 1; # fixes 'random' output behaviour of manager status
 use JSON; 
 use IO::File;
 use IO::Select;