diff options
Diffstat (limited to 'config/update_device_params.lua')
-rw-r--r-- | config/update_device_params.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/update_device_params.lua b/config/update_device_params.lua index 80b5b81..56e51ad 100644 --- a/config/update_device_params.lua +++ b/config/update_device_params.lua @@ -28,6 +28,8 @@ local notify_device = function(mac, extension) end end +oldparams = oldparams or {value={}} + -- If the mac address changed, we need to move the associated config files if oldparams.value.device and oldparams.value.device.value.mac and oldparams.value.device.value.mac.value ~= "" and params.value.device and params.value.device.value.mac and params.value.device.value.mac.value ~= oldparams.value.device.value.mac.value then if string.match(oldparams.value.device.label, "Polycom") then |