ansible/network/f5
Tim Rupp e81bbf9b8f 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-09-02 23:07:32 -07:00
..
__init__.py Fix rename error. 2014-11-04 17:27:51 -05:00
bigip_device_dns.py This module can be used as part of the bootstrapping of a BIG-IP. It 2016-08-23 12:26:23 -07:00
bigip_device_ntp.py This module can be used as part of the bootstrapping of a BIG-IP. It 2016-08-24 09:38:54 -07:00
bigip_device_sshd.py Addition of bigip_device_sshd module 2016-08-24 09:01:31 -07:00
bigip_facts.py Bugfix bigip_facts that was trying to check the length of an iterator (#2842) 2016-09-02 23:07:32 -07:00
bigip_gtm_datacenter.py Introduces the bigip_gtm_datacenter module (#1000) 2016-08-16 17:14:05 -07:00
bigip_gtm_virtual_server.py Adds documentation fragment to bigip modules 2016-08-23 12:24:15 -07:00
bigip_gtm_wide_ip.py Adds documentation fragment to bigip modules 2016-08-23 12:24:15 -07:00
bigip_irule.py Fixes documentation bugs in bigip_irule (#2797) 2016-08-29 18:29:47 +02:00
bigip_monitor_http.py Adds documentation fragment to bigip modules 2016-08-23 12:24:15 -07:00
bigip_monitor_tcp.py Adds documentation fragment to bigip modules 2016-08-23 12:24:15 -07:00
bigip_node.py Adds documentation fragment to bigip modules 2016-08-23 12:24:15 -07:00
bigip_pool.py Adds documentation fragment to bigip modules 2016-08-23 12:24:15 -07:00
bigip_pool_member.py Adds documentation fragment to bigip modules 2016-08-23 12:24:15 -07:00
bigip_routedomain.py Another bootstrapping module, this module allows for one to manage 2016-08-19 13:35:59 -07:00
bigip_selfip.py Adds allow_service parameter to bigip_selfip (#2808) 2016-08-31 14:49:03 +02:00
bigip_sys_db.py Introduces the bigip_sys_db module (#998) 2016-08-16 17:13:16 -07:00
bigip_virtual_server.py Adds documentation fragment to bigip modules 2016-08-23 12:24:15 -07:00
bigip_vlan.py Adds bigip_vlan module (#2661) 2016-08-16 17:11:09 -07:00