summaryrefslogtreecommitdiffstats
path: root/NPTest.pm
diff options
context:
space:
mode:
authorSven Nierlein <Sven.Nierlein@consol.de>2013-09-13 11:28:11 (GMT)
committerSven Nierlein <sven@consol.de>2013-09-13 11:37:41 (GMT)
commit8f5e92e1ed143bf2afd095a44ae6bb597ab7a5dc (patch)
tree43e946a53dc43375104df15e10e4c8b697c3d5a0 /NPTest.pm
parent4933146e00ccecc83144cb567520b963670028c3 (diff)
downloadmonitoring-plugins-8f5e92e1ed143bf2afd095a44ae6bb597ab7a5dc.tar.gz
NPTest: ensure all systems use same amount of whitespace
Diffstat (limited to 'NPTest.pm')
-rw-r--r--NPTest.pm5
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
462 $dataDumper->Terse(1); 462 $dataDumper->Terse(1);
463 $dataDumper->Sortkeys(1); 463 $dataDumper->Sortkeys(1);
464 464
465 print $fileHandle $dataDumper->Dump(); 465 my $data = $dataDumper->Dump();
466 $data =~ s/^\s+/ /gmx; # make sure all systems use same amount of whitespace
467 $data =~ s/^\s+}/}/gmx;
468 print $fileHandle $data;
466 469
467 $fileHandle->close(); 470 $fileHandle->close();
468 471