diff options
author | Ted Trask <ttrask01@yahoo.com> | 2016-08-10 14:57:01 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2016-08-10 14:57:01 +0000 |
commit | a375f945974e2d745f52e805539144bb3f041048 (patch) | |
tree | cb5e64a29ede9104e1bdb98a8932196c247d3568 | |
parent | 14babf18f0ea6ded5d9d94e5d9762464516e8cc1 (diff) | |
download | acf-dhcp-a375f945974e2d745f52e805539144bb3f041048.tar.bz2 acf-dhcp-a375f945974e2d745f52e805539144bb3f041048.tar.xz |
Remove trailing whitespace
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | dhcp-listhosts-html.lsp | 2 | ||||
-rw-r--r-- | dhcp-model.lua | 20 |
3 files changed, 12 insertions, 12 deletions
@@ -8,7 +8,7 @@ APP_DIST=\ EXTRA_DIST=README Makefile config.mk -DISTFILES=$(APP_DIST) $(EXTRA_DIST) +DISTFILES=$(APP_DIST) $(EXTRA_DIST) TAR=tar diff --git a/dhcp-listhosts-html.lsp b/dhcp-listhosts-html.lsp index 2959db6..ceacab0 100644 --- a/dhcp-listhosts-html.lsp +++ b/dhcp-listhosts-html.lsp @@ -44,7 +44,7 @@ </tr> <% end %> </tbody></table> - + <% htmlviewfunctions.displayitem(cfe({type="link", value={redir=redir}, label="Add new host", option="New", action="createhost"}), page_info, 0) %> <% htmlviewfunctions.displaysectionend(header_level) %> diff --git a/dhcp-model.lua b/dhcp-model.lua index 1c20aed..397cf1d 100644 --- a/dhcp-model.lua +++ b/dhcp-model.lua @@ -39,7 +39,7 @@ local parseconfigfile = function(file) lines[#lines+1] = string.gsub(line, "#.*$", "") end file = table.concat(lines, " ") - + -- each line either ends with ';' or with '{'...'}' -- build an array with one entry per statement, each entry having an array of elements, and possibly a subarray local config = {} @@ -400,7 +400,7 @@ end function mymodule.get_startstop(self, clientdata) return modelfunctions.get_startstop(processname) end - + function mymodule.startstop_service(self, startstop, action) return modelfunctions.startstop_service(startstop, action) end @@ -410,12 +410,12 @@ function mymodule.getstatus () end mymodule.create_new_host = function() - host = { + host = { host = cfe({ label="Host Name", seq=1 }), mac = cfe({ label="MAC Address", seq=2 }), addresses = cfe({ label="Fixed Addresses", descr="Comma-separated addresses", seq=3 }), } - + return cfe({ type="group", value=host, label="Host" }) end @@ -462,7 +462,7 @@ mymodule.host_update = function(self, host) else host.errtxt = "Failed to update host" end - + return host end @@ -525,7 +525,7 @@ mymodule.get_hosts = function () end mymodule.create_new_subnet = function() - net = { + net = { subnet = cfe({ label="Subnet", seq=1 }), netmask = cfe({ label="Netmask", seq=2 }), defleasetime = cfe({ label="Default Lease Time", seq=9 }), @@ -538,7 +538,7 @@ mymodule.create_new_subnet = function() leaserangeend = cfe({ label="Lease Range End", seq=4 }), unknownclients = cfe({ type="select", label="Unknown Clients", option={"", "allow", "deny"}, seq=5 }), } - + return cfe({ type="group", value=net, label="Subnet" }) end @@ -600,7 +600,7 @@ mymodule.subnet_read = function(self, clientdata) break end end - + if pools > 1 or ranges > 1 then net.value.subnet.errtxt = "Warning! This subnet contains multiple pool/range definitions. This is not supported by ACF. Saving may break functionality!" end @@ -628,7 +628,7 @@ mymodule.subnet_update = function(self, net) else net.errtxt = "Failed to update subnet" end - + return net end @@ -715,7 +715,7 @@ mymodule.read_settings = function() settings.dnsupdatestyle.value = value[2] or "" end end - + return cfe({ type="group", value=settings, label = "Global settings" }) end |