community.general/lib/ansible/modules/extras/network
Tim Rupp f48791e8bc Bugfix bigip_facts that was trying to check the length of an iterator (#2842)
Recently, a user reported that the bigip_facts module was failing with the error

    received exception: object of type 'itertools.imap' has no len()

This reported was occurring at line 1657 of the bigip_facts module

bug report is here

https://github.com/F5Networks/f5-ansible/issues/25

Upon further investigation, the map function for returning the specified
includes was returning an iterator, and calling len() on an iterator does
not work.

I believe this problem was caused by part of the Python 3.x effort insofar
as the inclusion of this line

https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/basic.py#L143

seems to affect our usage of map(), probably for the better anyway, and we need
to change our expectations in our module's code to no longer assume a list, but
instead assume an iterator.

After trawling through the module_utils/basic code, I think a list
comprehension is more appropriate here anyway, so I'm changing it to be
that. The affected user reported it works this way, and my own testing
on 2.2.0 supports that.
2016-12-08 11:34:47 -05:00
..
a10 when write_config is no, we should not try to write any configuration changes 2016-12-08 11:34:43 -05:00
asa New module asa_command (#2306) 2016-12-08 11:34:31 -05:00
citrix
exoscale new modules for managing exoscale DNS (#2788) 2016-12-08 11:34:44 -05:00
f5 Bugfix bigip_facts that was trying to check the length of an iterator (#2842) 2016-12-08 11:34:47 -05:00
illumos Add modules to configure Solaris/illumos networking (1st batch) (#2416) 2016-12-08 11:34:44 -05:00
netconf netconf module with edit-config operation (#2103) 2016-12-08 11:34:19 -05:00
__init__.py
cloudflare_dns.py Add a 'requirements:' field to cloudflare_dns doc (#2631) 2016-12-08 11:34:42 -05:00
dnsimple.py New json_fail syntax for dnsimple module 2016-12-08 11:33:55 -05:00
dnsmadeeasy.py
haproxy.py Fix argument type to bool. By default shutdown_sessions is always true then it should'nt. (#2596) 2016-12-08 11:34:33 -05:00
ipify_facts.py
lldp.py
nmcli.py Allow value to be bool where 'yes'/'no' are in choices (#2593) 2016-12-08 11:34:41 -05:00
openvswitch_bridge.py Define external_ids ’type' in openvswitch_bridge (#2523) 2016-12-08 11:34:27 -05:00
openvswitch_db.py
openvswitch_port.py Update openvswitch_port with tag feature (#2522) 2016-12-08 11:34:27 -05:00
snmp_facts.py Fix typo 2016-12-08 11:33:50 -05:00
wakeonlan.py wakeonlan: New module to send out magic WOL packets (#2271) 2016-12-08 11:34:31 -05:00