1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
Even if the size of the network is 0, it should have a netmask.
This commit is contained in:
Michael Scherer 2016-09-19 17:58:20 +02:00 committed by Adrian Likins
parent 881da2b3f1
commit 968101f611

View file

@ -163,8 +163,7 @@ def _net_query(v):
return str(v.network) + '/' + str(v.prefixlen)
def _netmask_query(v):
if v.size > 1:
return str(v.netmask)
return str(v.netmask)
def _network_query(v):
if v.size > 1: