BIND 10 #442: Forwarding breaks selecting port in BoB
BIND 10 Development
do-not-reply at isc.org
Tue Dec 21 13:32:31 UTC 2010
#442: Forwarding breaks selecting port in BoB
---------------------------+------------------------------------------------
Reporter: shane | Owner: shane
Type: defect | Status: new
Priority: major | Milestone:
Component: Boss of BIND | Keywords:
Sensitive: 0 | Estimatedhours: 0.5
Hours: 0 | Billable: 1
Totalhours: 0 | Internal: 0
---------------------------+------------------------------------------------
There is a typo in the trunk version of the boss process:
{{{
if opt_str in ['-a', '--address']:
parser.values.address = isc.net.parse.addr_parse(value)
if opt_str in ['-f', '--forward']:
parser.values.forward = isc.net.parse.addr_parse(value)
else:
raise OptionValueError("Unknown option " + opt_str)
}}}
The 2nd "if opt_str" ... line should be "elif". The following patch fixes
this:
{{{
--- bind10.py.in.orig 2010-12-21 14:31:45.000000000 +0100
+++ bind10.py.in 2010-12-21 14:31:53.679765919 +0100
@@ -740,7 +740,7 @@
try:
if opt_str in ['-a', '--address']:
parser.values.address = isc.net.parse.addr_parse(value)
- if opt_str in ['-f', '--forward']:
+ elif opt_str in ['-f', '--forward']:
parser.values.forward = isc.net.parse.addr_parse(value)
else:
raise OptionValueError("Unknown option " + opt_str)
}}}
--
Ticket URL: <http://bind10.isc.org/ticket/442>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list