Commit af811bf4 authored by Ted Trask's avatar Ted Trask
Browse files

Updated for handle_form now passing self to get and set functions

parent 39844298
......@@ -36,8 +36,8 @@ function get_filedetails()
return modelfunctions.getfiledetails(configfile)
function update_filedetails(filedetails)
return modelfunctions.setfiledetails(filedetails, {configfile})
function update_filedetails(self, filedetails)
return modelfunctions.setfiledetails(self, filedetails, {configfile})
function get_kinit()
......@@ -47,7 +47,7 @@ function get_kinit()
return cfe({ type="group", value=value, label="Kinit Parameters" })
function set_kinit(data)
function set_kinit(self, data)
local tmp = "/tmp/k"..os.time()
fs.write_file(tmp, data.value.password.value)
local cmd = path.."kinit --password-file="..tmp.." "..format.escapespecialcharacters(data.value.login.value).." 2>&1"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment