[nagiosplug] tests: sort cached settings before save

"Nagios Plugin Development" <[email protected]> Thu, 12 Sep 2013 21:40:10 +0000
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
    Module: nagiosplug
    Branch: master
    Commit: 38ef9b60a08c7b831986280a26ded58215f343bb
    Author: Sven Nierlein <[email protected]>
 Committer: Sven Nierlein <[email protected]>
      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();
 


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk