ldap_crans/ip(): manipule toujours une ip texte

This commit is contained in:
Daniel STAN 2015-08-28 15:42:16 +02:00
parent a3c3290a26
commit 2a5c273b2c

View file

@ -3249,7 +3249,7 @@ Contactez nounou si la MAC est bien celle d'une carte.""", 3)
rid = int(self.rid())
rid_obj = ridtools.Rid(rid)
if rid_obj.ipv4_dispo:
ip = rid_obj.ipv4()
ip = unicode(rid_obj.ipv4())
else:
ip = ''
#On essaye d'attribuer un rid si ip auto et pas encore de rid