[attributs] ip4_of_rid mange un entier ou un string
This commit is contained in:
parent
2a4037d39c
commit
ed140bf4b5
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue