diff options
author | Ted Trask <ttrask01@yahoo.com> | 2013-10-09 18:57:06 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2013-10-09 18:57:06 +0000 |
commit | 7431e462e1e92fb757d16d373ed91a5fe1b0659b (patch) | |
tree | 0a863b5fee849a18beab4d9caa841be10ed960d3 /config | |
parent | e0050d0a99074975602ecc4f953207aafb759625 (diff) | |
download | acf-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.lua | 2 |
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 |