netbios type should be coerced to integer.

Otherwise the check always fails.
This commit is contained in:
Omer Katz 2014-09-29 18:41:50 +03:00
parent 2650d9981f
commit a63e6d2459

View File

@ -1895,7 +1895,7 @@ class DHCPOptionsSetBackend(object):
if field_value and len(field_value) > 4:
raise InvalidParameterValueError(",".join(field_value))
if netbios_node_type and netbios_node_type[0] not in NETBIOS_NODE_TYPES:
if netbios_node_type and int(netbios_node_type[0]) not in NETBIOS_NODE_TYPES:
raise InvalidParameterValueError(netbios_node_type)
options = DHCPOptionsSet(