summaryrefslogtreecommitdiffstats
path: root/mdadm-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-28 12:17:44 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-28 12:17:44 +0000
commit88c773d7083b51be4aeb0e350024bcac32888952 (patch)
tree6bac6aebbdcfe56b5c48f5cf0cc9b2a2a11bbe5f /mdadm-model.lua
parentcd0087e685168f3afba0047dd89561a42edeb550 (diff)
downloadacf-mdadm-88c773d7083b51be4aeb0e350024bcac32888952.tar.bz2
acf-mdadm-88c773d7083b51be4aeb0e350024bcac32888952.tar.xz
Updated for handle_form now passing self to get and set functions
Diffstat (limited to 'mdadm-model.lua')
-rw-r--r--mdadm-model.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/mdadm-model.lua b/mdadm-model.lua
index 401914b..38af0e3 100644
--- a/mdadm-model.lua
+++ b/mdadm-model.lua
@@ -18,11 +18,11 @@ local path = "PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
-- ################################################################################
-- PUBLIC FUNCTIONS
-function get_startstop(clientdata)
+function get_startstop(self, clientdata)
return modelfunctions.get_startstop(processname)
end
-function startstop_service(startstop, action)
+function startstop_service(self, startstop, action)
return modelfunctions.startstop_service(startstop, action)
end
@@ -38,6 +38,6 @@ function get_filedetails()
return modelfunctions.getfiledetails(configfile)
end
-function update_filedetails(filedetails)
- return modelfunctions.setfiledetails(filedetails, {configfile})
+function update_filedetails(self, filedetails)
+ return modelfunctions.setfiledetails(self, filedetails, {configfile})
end