Skip to content

Commit

Permalink
Merge pull request #1 from ijajmulani/ijajmulani-patch-1
Browse files Browse the repository at this point in the history
Fixed ansible.utils.ipaddr('host/prefix') function if size of subnet …
  • Loading branch information
ijajmulani authored Sep 10, 2024
2 parents c4ace98 + cf6e761 commit 04eec0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/plugin_utils/base/ipaddr_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _ip_query(v):


def _address_prefix_query(v):
if v.size > 2 and v.ip in (v.network, v.broadcast):
if v.ip in (v.network, v.broadcast):
return False
return str(v.ip) + "/" + str(v.prefixlen)

Expand Down

0 comments on commit 04eec0b

Please sign in to comment.