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:
Jack Haden-Enneking
2018-11-08 08:49:42 -08:00
committed by Sam Doran
parent 6ec820e264
commit 15e77ebfe8
3 changed files with 11 additions and 11 deletions

View File

@@ -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):