From a63e6d245927bb3478b7ab07fe958b7c70a53134 Mon Sep 17 00:00:00 2001 From: Omer Katz Date: Mon, 29 Sep 2014 18:41:50 +0300 Subject: [PATCH] netbios type should be coerced to integer. Otherwise the check always fails. --- moto/ec2/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/ec2/models.py b/moto/ec2/models.py index 20fe46b25..73df55897 100644 --- a/moto/ec2/models.py +++ b/moto/ec2/models.py @@ -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(