mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 01:03:09 +00:00
Merge pull request #13739 from chrrrles/ipaddr_empty_string
ipaddr filter properly handle addresses on /31 networks
This commit is contained in:
@@ -80,7 +80,8 @@ def _ip_query(v):
|
||||
if v.size == 1:
|
||||
return str(v.ip)
|
||||
if v.size > 1:
|
||||
if v.ip != v.network:
|
||||
# /31 networks in netaddr have no broadcast address
|
||||
if v.ip != v.network or not v.broadcast:
|
||||
return str(v.ip)
|
||||
|
||||
def _gateway_query(v):
|
||||
|
||||
Reference in New Issue
Block a user