diff options
author | Sven Nierlein <Sven.Nierlein@consol.de> | 2013-09-13 13:28:11 +0200 |
---|---|---|
committer | Sven Nierlein <sven@consol.de> | 2013-09-13 13:37:41 +0200 |
commit | 8f5e92e1ed143bf2afd095a44ae6bb597ab7a5dc (patch) | |
tree | 43e946a53dc43375104df15e10e4c8b697c3d5a0 | |
parent | 4933146e00ccecc83144cb567520b963670028c3 (diff) | |
download | monitoring-plugins-8f5e92e1ed143bf2afd095a44ae6bb597ab7a5dc.tar.gz |
NPTest: ensure all systems use same amount of whitespace
-rw-r--r-- | NPTest.pm | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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(); |