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.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 '')
| -rwxr-xr-x | apt-panopticon.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua index a97a974..c39a9b9 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua | |||
| @@ -624,7 +624,7 @@ local getMirrors = function () | |||
| 624 | end | 624 | end |
| 625 | local file, e = io.open("results/mirrors.lua", "w+") | 625 | local file, e = io.open("results/mirrors.lua", "w+") |
| 626 | if nil == file then C("opening mirrors file - " .. e) else | 626 | if nil == file then C("opening mirrors file - " .. e) else |
| 627 | file:write(APT.dumpTable(mirrors, "", "mirrors") .. "\nreturn mirrors\n") | 627 | file:write(APT.dumpTable(mirrors, "mirrors") .. "\nreturn mirrors\n") |
| 628 | file:close() | 628 | file:close() |
| 629 | end | 629 | end |
| 630 | return mirrors | 630 | return mirrors |
| @@ -1045,7 +1045,7 @@ if 0 < #arg then | |||
| 1045 | if "" ~= ip then f = f .. "_" .. ip end | 1045 | if "" ~= ip then f = f .. "_" .. ip end |
| 1046 | local rfile, e = io.open("results/" .. f .. ".lua", "w+") | 1046 | local rfile, e = io.open("results/" .. f .. ".lua", "w+") |
| 1047 | if nil == rfile then C("opening results file - " .. e) else | 1047 | if nil == rfile then C("opening results file - " .. e) else |
| 1048 | rfile:write(APT.dumpTable(APT.results, "", "results") .. "\nreturn results\n") | 1048 | rfile:write(APT.dumpTable(APT.results, "results") .. "\nreturn results\n") |
| 1049 | rfile:close() | 1049 | rfile:close() |
| 1050 | end | 1050 | end |
| 1051 | 1051 | ||
| @@ -1190,7 +1190,7 @@ os.execute('sleep 1') -- Wait for things to start up before checking for them. | |||
| 1190 | end | 1190 | end |
| 1191 | local file, e = io.open("results/debians.lua", "w+") | 1191 | local file, e = io.open("results/debians.lua", "w+") |
| 1192 | if nil == file then C("opening debians file - " .. e) else | 1192 | if nil == file then C("opening debians file - " .. e) else |
| 1193 | file:write(APT.dumpTable(debians, "", "debians") .. "\nreturn debians\n") | 1193 | file:write(APT.dumpTable(debians, "debians") .. "\nreturn debians\n") |
| 1194 | file:close() | 1194 | file:close() |
| 1195 | end | 1195 | end |
| 1196 | 1196 | ||
| @@ -1204,7 +1204,7 @@ os.execute('sleep 1') -- Wait for things to start up before checking for them. | |||
| 1204 | end | 1204 | end |
| 1205 | local file, e = io.open("results/mirrors.lua", "w+") | 1205 | local file, e = io.open("results/mirrors.lua", "w+") |
| 1206 | if nil == file then C("opening mirrors file - " .. e) else | 1206 | if nil == file then C("opening mirrors file - " .. e) else |
| 1207 | file:write(APT.dumpTable(APT.mirrors, "", "mirrors") .. "\nreturn mirrors\n") | 1207 | file:write(APT.dumpTable(APT.mirrors, "mirrors") .. "\nreturn mirrors\n") |
| 1208 | file:close() | 1208 | file:close() |
| 1209 | end | 1209 | end |
| 1210 | 1210 | ||
