summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2015-06-08 11:54:44 -0400
committerTed Trask <ttrask01@yahoo.com>2015-06-08 11:54:44 -0400
commita5f0e843849aad23fcbc4986699d36547aacd0e4 (patch)
tree500d8b3d772862de7d16b08ac016e56d1f221e30
parent52192d517342cd53f31973297c836060634a3aec (diff)
downloadacf-provisioning-a5f0e843849aad23fcbc4986699d36547aacd0e4.tar.bz2
acf-provisioning-a5f0e843849aad23fcbc4986699d36547aacd0e4.tar.xz
Fix duplicate fixedDayEnable in polycom template
-rw-r--r--config/templates/polycom-template.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/config/templates/polycom-template.lua b/config/templates/polycom-template.lua
index 8bc6a70..ffdbc83 100644
--- a/config/templates/polycom-template.lua
+++ b/config/templates/polycom-template.lua
@@ -149,14 +149,15 @@ if tz then
end
if t.day then
- -- there may be two of next line, Polycom uses first
- xml_attr({ dstprefix, 'fixedDayEnable' }, true)
+ if pos == 'start' then
+ xml_attr({ dstprefix, 'fixedDayEnable' }, true)
+ end
xml_attr({ dstprefix, pos, 'month' }, t.month)
xml_attr({ dstprefix, pos, 'date' }, t.day)
else
-
- -- there may be two of next line, Polycom uses first
- xml_attr({ dstprefix, 'fixedDayEnable' }, false)
+ if pos == 'start' then
+ xml_attr({ dstprefix, 'fixedDayEnable' }, false)
+ end
xml_attr({ dstprefix, pos, 'month' }, t.month)
-- POSIX weekday is between 0 (Sun) and 6 (Sat)