summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fetchcrl-model.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/fetchcrl-model.lua b/fetchcrl-model.lua
index 7b68fd2..e2568c9 100644
--- a/fetchcrl-model.lua
+++ b/fetchcrl-model.lua
@@ -33,12 +33,12 @@ get_status = function()
return cfe({ type="group", value=status, label="Fetch-CRL Status" })
end
-function get_startstop(clientdata)
+function get_startstop(self, clientdata)
local actions = {"Download", "Delete"}
return cfe({ type="group", label="Management", value={}, option=actions })
end
-function startstop_service(startstop, action)
+function startstop_service(self, startstop, action)
if (string.lower(action) == "download") then
local file = io.popen(path .. "fetch-crl 2>&1")
if file ~= nil then
@@ -62,6 +62,6 @@ get_configfile = function()
return modelfunctions.getfiledetails(configfile)
end
-update_configfile = function(filedetails)
- return modelfunctions.setfiledetails(filedetails, {configfile})
+update_configfile = function(self, filedetails)
+ return modelfunctions.setfiledetails(self, filedetails, {configfile})
end