diff options
author | Ted Trask <ttrask01@yahoo.com> | 2015-12-28 16:09:52 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2015-12-28 16:09:52 +0000 |
commit | 0e9d6d88d375f3ef9226ee053db819d671582e24 (patch) | |
tree | a88f0a2c567e148292b200e97343207e275db0e7 /config/update_device.lua | |
parent | f91deac776293158454217d3437762576e30d3a7 (diff) | |
download | acf-provisioning-0e9d6d88d375f3ef9226ee053db819d671582e24.tar.bz2 acf-provisioning-0e9d6d88d375f3ef9226ee053db819d671582e24.tar.xz |
Modify update_device to also validate device params (this causes update_device_params.lua to be called before update_device.lua)
Diffstat (limited to 'config/update_device.lua')
-rw-r--r-- | config/update_device.lua | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/config/update_device.lua b/config/update_device.lua index b4334cd..cd5dda5 100644 --- a/config/update_device.lua +++ b/config/update_device.lua @@ -3,18 +3,4 @@ local functions, device, olddevice, params, oldparams = ... --functions.logevent("got to update_device script") --- We'll handle the changing of the device by handling the resulting changing of the params -local f -local env = {} -setmetatable (env, {__index = _G}) -local IS_52_LOAD = pcall(load, '') -if IS_52_LOAD then - f = loadfile("/etc/provisioning/update_device_params.lua", "bt", env) -else - -- loadfile loads into the global environment - -- so we set env 0, not env 1 - setfenv (0, env) - f = loadfile("/etc/provisioning/update_device_params.lua") - setfenv (0, _G) -end -if (f) then f(functions, params, oldparams) end +-- The resulting changing of the params has already been handled, so nothing to do here |