[attributs] ip4_of_rid mange un entier ou un string

This commit is contained in:
Valentin Samir 2013-05-10 01:38:30 +02:00
parent 2a4037d39c
commit ed140bf4b5

View file

@ -563,7 +563,7 @@ class ipHostNumber(Attr):
def parse_value(self, ip):
if ip == '<automatique>':
ip = ip4_of_rid(self.parent['rid'][0])
ip = ip4_of_rid(str(self.parent['rid'][0]))
self.value = netaddr.ip.IPAddress(ip)
def __unicode__(self):