[nagiosplug] NPTest: ensure all systems use same amount of ...

Nagios Plugin Development nagios-plugins at users.sourceforge.net
Sun Sep 15 00:00:40 CEST 2013


    Module: nagiosplug
    Branch: master
    Commit: 8f5e92e1ed143bf2afd095a44ae6bb597ab7a5dc
    Author: Sven Nierlein <Sven.Nierlein at consol.de>
 Committer: Sven Nierlein <sven at consol.de>
      Date: Fri Sep 13 13:28:11 2013 +0200
       URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=8f5e92e

NPTest: ensure all systems use same amount of whitespace

---

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

diff --git a/NPTest.pm b/NPTest.pm
index c0897d8..c719776 100644
--- a/NPTest.pm
+++ b/NPTest.pm
@@ -462,7 +462,10 @@ sub SaveCache
   $dataDumper->Terse(1);
   $dataDumper->Sortkeys(1);
 
-  print $fileHandle $dataDumper->Dump();
+  my $data = $dataDumper->Dump();
+  $data =~ s/^\s+/  /gmx; # make sure all systems use same amount of whitespace
+  $data =~ s/^\s+}/}/gmx;
+  print $fileHandle $data;
 
   $fileHandle->close();
 





More information about the Commits mailing list