mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-22 14:46:57 -04:00
NPTest: ensure all systems use same amount of whitespace
This commit is contained in:
parent
4933146e00
commit
8f5e92e1ed
1 changed files with 4 additions and 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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue