aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticon-update-data.lua
diff options
context:
space:
mode:
authoronefang2019-12-28 22:39:52 +1000
committeronefang2019-12-28 22:39:52 +1000
commit6e868b6382cabbacffb1d12dc91f7eb9a8362ce2 (patch)
treef14f68c1419053b787969fd210d903458ddde52a /apt-panopticon-update-data.lua
parentNagios is no longer a report type. (diff)
downloadapt-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-xapt-panopticon-update-data.lua4
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