diff options
author | Michael Scherer <mscherer@users.noreply.github.com> | 2016-09-19 17:58:20 +0200 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2016-09-19 11:58:20 -0400 |
commit | 968101f6114cd1bfeec0b1b1dd10ba8c695c862a (patch) | |
tree | aadd7360fd12293d3368bb9a18ad9677e456e7e0 | |
parent | 881da2b3f1aaf4dfaf7d3384d8ee188e9c6d512e (diff) | |
download | ansible-968101f6114cd1bfeec0b1b1dd10ba8c695c862a.tar.gz |
Fix #17624 (#17627)
Even if the size of the network is 0, it should have a netmask.
-rw-r--r-- | lib/ansible/plugins/filter/ipaddr.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ansible/plugins/filter/ipaddr.py b/lib/ansible/plugins/filter/ipaddr.py index 46157e8bbb..32b6017e12 100644 --- a/lib/ansible/plugins/filter/ipaddr.py +++ b/lib/ansible/plugins/filter/ipaddr.py @@ -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: |