summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-09 18:57:06 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-09 18:57:06 +0000
commit7431e462e1e92fb757d16d373ed91a5fe1b0659b (patch)
tree0a863b5fee849a18beab4d9caa841be10ed960d3 /config
parente0050d0a99074975602ecc4f953207aafb759625 (diff)
downloadacf-provisioning-7431e462e1e92fb757d16d373ed91a5fe1b0659b.tar.bz2
acf-provisioning-7431e462e1e92fb757d16d373ed91a5fe1b0659b.tar.xz
Fix bug in polycom template where gmtOffset was -0
Diffstat (limited to 'config')
-rw-r--r--config/templates/polycom-template.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/templates/polycom-template.lua b/config/templates/polycom-template.lua
index cf456d1..81adc8f 100644
--- a/config/templates/polycom-template.lua
+++ b/config/templates/polycom-template.lua
@@ -56,6 +56,8 @@ device.set="1"
<%
local function xml_attr (t, v)
if v ~= nil then
+ -- Check for -0, which is invalid for Polycom but fine for Lua
+ if (v == 0) then v = "0" end
-- v could be a string, boolean, or a number
io.write(table.concat(t, '.') .. '="' .. tostring(v) .. '"\n')
end