mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
nlmanager: fix IPAddress's repr, which must return a str
Signed-off-by: Alexandre Bruyelles <abruyelles@odiso.com>
This commit is contained in:
@@ -146,7 +146,7 @@ class IPAddress(IPNetwork):
|
||||
self.ignore_prefixlen()
|
||||
|
||||
def __repr__(self):
|
||||
return self._ip
|
||||
return str(self._ip)
|
||||
|
||||
def __raise_exception(self, ip):
|
||||
raise ValueError(
|
||||
|
||||
Reference in New Issue
Block a user