BIND 10 #945: zonemgr crashes on some configs
BIND 10 Development
do-not-reply at isc.org
Thu May 19 17:46:55 UTC 2011
#945: zonemgr crashes on some configs
-------------------------------------+-------------------------------------
Reporter: jelte | Owner: jelte
Type: | Status: assigned
defect | Milestone: New Tasks
Priority: | Resolution:
blocker | Sensitive: 0
Component: | Sub-Project: DNS
Unclassified | Estimated Difficulty: 0.0
Keywords: | Total Hours: 0
Defect Severity: N/A |
Feature Depending on Ticket: |
Add Hours to Ticket: 0 |
Internal?: 0 |
-------------------------------------+-------------------------------------
Changes (by vorner):
* owner: => jelte
* status: new => assigned
Comment:
Hello.
I believe it has one problem. It is impossible to set some value to 0 (for
example, if I didn't want jitter), the update would be ignored:
{{{
python3
Python 3.1.3 (r313:86834, Mar 20 2011, 12:22:30)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 0 or 5
5
>>>
}}}
Because 0 is false and expression like {{{new_config.get('reload_jitter')
or self._reload_jitter}}} will take the original in this case.
(This is the reason why perl 5.10 introduced the `//` operator, but I
don't think python has something like this, we'll need conditional
expressions here I think)
It seems OK otherwise.
--
Ticket URL: <http://bind10.isc.org/ticket/945#comment:2>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list