From fa5f8a75433fa3d10d55da52efba34d1f653fdda Mon Sep 17 00:00:00 2001 From: Joshua Elsasser Date: Sat, 17 Sep 2016 14:52:10 -0700 Subject: [PATCH] Fix slaac filter (#17551) --- lib/ansible/plugins/filter/ipaddr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/filter/ipaddr.py b/lib/ansible/plugins/filter/ipaddr.py index 20041e0da9..46157e8bbb 100644 --- a/lib/ansible/plugins/filter/ipaddr.py +++ b/lib/ansible/plugins/filter/ipaddr.py @@ -608,7 +608,7 @@ def slaac(value, query = ''): elif vtype == 'network': v = ipaddr(value, 'subnet') - if v.version != 6: + if ipaddr(value, 'version') != 6: return False value = netaddr.IPNetwork(v)