mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add scope on str
This commit is contained in:
parent
f5644bf617
commit
66ec29ca75
1 changed files with 4 additions and 0 deletions
|
@ -178,6 +178,10 @@ class IPv6AddressScoped(ipaddress.IPv6Address):
|
|||
'''
|
||||
return self.__scope
|
||||
|
||||
def __str__(self):
|
||||
return text_type(self._string_from_ip_int(self._ip) +
|
||||
('%' + self.scope if self.scope is not None else ''))
|
||||
|
||||
|
||||
def ip_address(address):
|
||||
"""Take an IP string/int and return an object of the correct type.
|
||||
|
|
Loading…
Add table
Reference in a new issue