You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
8 years ago
..
__init__.py Fix rename error. 10 years ago
bigip_device_dns.py This module can be used as part of the bootstrapping of a BIG-IP. It 8 years ago
bigip_device_ntp.py This module can be used as part of the bootstrapping of a BIG-IP. It 8 years ago
bigip_device_sshd.py Addition of bigip_device_sshd module 8 years ago
bigip_facts.py Bugfix bigip_facts that was trying to check the length of an iterator (#2842) 8 years ago
bigip_gtm_datacenter.py Introduces the bigip_gtm_datacenter module (#1000) 8 years ago
bigip_gtm_virtual_server.py Adds documentation fragment to bigip modules 8 years ago
bigip_gtm_wide_ip.py Adds documentation fragment to bigip modules 8 years ago
bigip_irule.py Fixes documentation bugs in bigip_irule (#2797) 8 years ago
bigip_monitor_http.py Adds documentation fragment to bigip modules 8 years ago
bigip_monitor_tcp.py Adds documentation fragment to bigip modules 8 years ago
bigip_node.py Adds documentation fragment to bigip modules 8 years ago
bigip_pool.py Adds documentation fragment to bigip modules 8 years ago
bigip_pool_member.py Adds documentation fragment to bigip modules 8 years ago
bigip_routedomain.py Another bootstrapping module, this module allows for one to manage 8 years ago
bigip_selfip.py Adds allow_service parameter to bigip_selfip (#2808) 8 years ago
bigip_sys_db.py Introduces the bigip_sys_db module (#998) 8 years ago
bigip_virtual_server.py Adds documentation fragment to bigip modules 8 years ago
bigip_vlan.py Adds bigip_vlan module (#2661) 8 years ago