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
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
..
a10 when write_config is no, we should not try to write any configuration changes 8 years ago
asa New module asa_command (#2306) 8 years ago
citrix be explicit about urllib import and remove conditional urllib(2) import 10 years ago
exoscale new modules for managing exoscale DNS (#2788) 8 years ago
f5 Bugfix bigip_facts that was trying to check the length of an iterator (#2842) 8 years ago
illumos Add modules to configure Solaris/illumos networking (1st batch) (#2416) 8 years ago
netconf netconf module with edit-config operation (#2103) 9 years ago
__init__.py Fix rename error. 10 years ago
cloudflare_dns.py Add a 'requirements:' field to cloudflare_dns doc (#2631) 8 years ago
dnsimple.py New json_fail syntax for dnsimple module 9 years ago
dnsmadeeasy.py removed comment 9 years ago
haproxy.py Fix argument type to bool. By default shutdown_sessions is always true then it should'nt. (#2596) 8 years ago
ipify_facts.py Update for modules which import json. 9 years ago
lldp.py Add lldpctl to requirements. 9 years ago
nmcli.py Allow value to be bool where 'yes'/'no' are in choices (#2593) 8 years ago
openvswitch_bridge.py Define external_ids ’type' in openvswitch_bridge (#2523) 9 years ago
openvswitch_db.py removed extra syslog message and DOCUMENTATION variable 9 years ago
openvswitch_port.py Update openvswitch_port with tag feature (#2522) 9 years ago
snmp_facts.py Fix typo 9 years ago
wakeonlan.py wakeonlan: New module to send out magic WOL packets (#2271) 8 years ago