[nagiosplug] tests: sort cached settings before save

Nagios Plugin Development nagios-plugins at users.sourceforge.net
Thu Sep 12 23:40:10 CEST 2013


    Module: nagiosplug
    Branch: master
    Commit: 38ef9b60a08c7b831986280a26ded58215f343bb
    Author: Sven Nierlein <Sven.Nierlein at consol.de>
 Committer: Sven Nierlein <sven at consol.de>
      Date: Thu Sep 12 13:57:57 2013 +0200
       URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=38ef9b6

tests: sort cached settings before save

---

 NPTest.pm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/NPTest.pm b/NPTest.pm
index a2cad19..c0897d8 100644
--- a/NPTest.pm
+++ b/NPTest.pm
@@ -460,6 +460,7 @@ sub SaveCache
   my( $dataDumper ) = new Data::Dumper( [ \%CACHE ] );
 
   $dataDumper->Terse(1);
+  $dataDumper->Sortkeys(1);
 
   print $fileHandle $dataDumper->Dump();
 





More information about the Commits mailing list