diff options
author | onefang | 2019-12-28 22:39:52 +1000 |
---|---|---|
committer | onefang | 2019-12-28 22:39:52 +1000 |
commit | 6e868b6382cabbacffb1d12dc91f7eb9a8362ce2 (patch) | |
tree | f14f68c1419053b787969fd210d903458ddde52a /apt-panopticon-update-data.lua | |
parent | Nagios is no longer a report type. (diff) | |
download | apt-panopticon-6e868b6382cabbacffb1d12dc91f7eb9a8362ce2.zip apt-panopticon-6e868b6382cabbacffb1d12dc91f7eb9a8362ce2.tar.gz apt-panopticon-6e868b6382cabbacffb1d12dc91f7eb9a8362ce2.tar.bz2 apt-panopticon-6e868b6382cabbacffb1d12dc91f7eb9a8362ce2.tar.xz |
Tweak the dumpTable() arguments a little.
Diffstat (limited to 'apt-panopticon-update-data.lua')
-rwxr-xr-x | apt-panopticon-update-data.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-panopticon-update-data.lua b/apt-panopticon-update-data.lua index e882c49..a26b11b 100755 --- a/apt-panopticon-update-data.lua +++ b/apt-panopticon-update-data.lua | |||
@@ -33,7 +33,7 @@ local fixResults = function(f) | |||
33 | end | 33 | end |
34 | local rfile, e = io.open(f, "w+") | 34 | local rfile, e = io.open(f, "w+") |
35 | if nil == rfile then C("opening results file - " .. e) else | 35 | if nil == rfile then C("opening results file - " .. e) else |
36 | rfile:write(APT.dumpTable(results, "", "results") .. "\nreturn results\n") | 36 | rfile:write(APT.dumpTable(results, "results") .. "\nreturn results\n") |
37 | rfile:close() | 37 | rfile:close() |
38 | end | 38 | end |
39 | end | 39 | end |
@@ -86,7 +86,7 @@ for l in files:lines() do | |||
86 | results['IPs'] = v.IPs | 86 | results['IPs'] = v.IPs |
87 | local rfile, e = io.open(f, "w+") | 87 | local rfile, e = io.open(f, "w+") |
88 | if nil == rfile then C("opening results file - " .. e) else | 88 | if nil == rfile then C("opening results file - " .. e) else |
89 | rfile:write(APT.dumpTable(results, "", "results") .. "\nreturn results\n") | 89 | rfile:write(APT.dumpTable(results, "results") .. "\nreturn results\n") |
90 | rfile:close() | 90 | rfile:close() |
91 | end | 91 | end |
92 | end | 92 | end |