mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Fixes ipv6 and defaults errors (#48776)
This commit is contained in:
@@ -94,12 +94,12 @@ def is_valid_ip_interface(address):
|
||||
|
||||
|
||||
def get_netmask(address):
|
||||
addr = ip_network(address)
|
||||
addr = ip_network(u'{0}'.format(address))
|
||||
netmask = addr.netmask.compressed
|
||||
return netmask
|
||||
|
||||
|
||||
def compress_address(address):
|
||||
addr = ip_network(address)
|
||||
addr = ip_network(u'{0}'.format(address))
|
||||
result = addr.compressed.split('/')[0]
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user