mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
ipaddr filter - return a network address when given an address with /32 subnet (#47539)
* fix #17872 * add changelog fragment and enable unit test
This commit is contained in:
committed by
Sam Doran
parent
6ec820e264
commit
15e77ebfe8
@@ -249,8 +249,7 @@ def _netmask_query(v):
|
||||
|
||||
def _network_query(v):
|
||||
'''Return the network of a given IP or subnet'''
|
||||
if v.size > 1:
|
||||
return str(v.network)
|
||||
return str(v.network)
|
||||
|
||||
|
||||
def _network_id_query(v):
|
||||
|
||||
Reference in New Issue
Block a user