[nagiosplug] NPTest: ensure all systems use same amount of ...
"Nagios Plugin Development" <[email protected]> Sat, 14 Sep 2013 22:00:40 +0000
| Newsgroups | gmane.network.nagios.plugins.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module: nagiosplug
Branch: master
Commit: 8f5e92e1ed143bf2afd095a44ae6bb597ab7a5dc
Author: Sven Nierlein <[email protected]>
Committer: Sven Nierlein <[email protected]>
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();
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk