Commit graph

20 commits

Author SHA1 Message Date
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
Tim Rupp
f29efb5626 Adds provision info to bigip facts (#2783)
This patch adds provision information to the bigip_facts module
through a "provision" include.
2016-08-25 19:18:22 +02:00
Tim Rupp
5399deff0b Adds documentation fragment to bigip modules
This patch removes the common documentation bits and replaces them
with a doc fragment that already exists in core
2016-08-23 12:24:15 -07:00
Tim Rupp
e0b3e2f790 Adds coding conventions to the bigip_facts module (#2515)
A number of coding conventions have been adopted for new F5 modules
that are in development. To ensure common usage across the modules,
this module needed to be updated to reflect those conventions.

No functional code changes were made.
2016-07-03 18:19:53 +02:00
Tim Rupp
9d37820b08 Adds server port argument to legacy modules (#2444)
This patch adds support for the server_port module. It
additionally updates the documentation in the module for
it.

The changes were tested in the f5-ansible repository to
ensure no breaking changes were made. This argument allows
modules to be used on BIG-IPs that are listening on
non-standard ports.
2016-06-23 11:33:49 +02:00
Tim Rupp
86f08bfcda Adds the __main__ conditional check (#2098)
As is done in other ansible modules, this adds the __main__ check
to the module so that the module code itself can be used as a library.
For instance, when testing the code.
2016-04-25 15:34:18 -04:00
Toshio Kuratomi
c67316cbaf Update f5 validate_certs functionality to do the right thing on multiple python versions
This requires the implementation in the module_utils code here
https://github.com/ansible/ansible/pull/13667 to funciton
2015-12-24 11:57:15 -08:00
Greg DeKoenigsberg
004dedba8a Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
Brian Coca
5187c7fcd7 removed executable bit 2015-05-21 07:03:49 -04:00
Toshio Kuratomi
576d94e8d4 Update module_utils "import" to the new-style
Fixes #505
2015-05-18 12:08:15 -07:00
Brian Coca
edf519a0c2 moar quotes 2015-05-14 09:37:00 -04:00
Greg DeKoenigsberg
321ad3b474 Adding author's github id 2015-05-13 17:29:08 -04:00
Greg DeKoenigsberg
b8e648536a Adding author's github id 2015-05-13 17:28:43 -04:00
Brian Coca
4048de9c1e Merge pull request #373 from andyhky/add_failover
bigip_facts: Add missing 'device' option
2015-04-03 17:49:31 -04:00
Andy Hill
3431275921 bigip_facts: Add missing "device" option
The device option was already implemented but omitted from docs and allowed
choices. With the addition of device, a devices failover_state can be
determined.
2015-04-02 13:44:07 -04:00
Brian Coca
5293f452b5 corrected version added 2015-03-25 22:04:44 -04:00
Brian Coca
eef2a95f96 Merge pull request #334 from msabramo/bigip_disable_ssl_cert_verification
Add `verify` param; set false to ignore SSL cert
2015-03-25 21:46:11 -04:00
Marc Abramowitz
513724c0a5 Add validate_certs param to bigip_* modules
Ignoring SSL cert verification may be necessary when testing with a
server that has a self-signed certificate.

See
https://github.com/ansible/ansible-modules-extras/pull/288#issuecomment-85196736
2015-03-23 23:54:48 -07:00
Matt Hite
a7e1f86b8b Another potential fix for issue 109; now catches WebFault 2015-02-21 11:29:35 -08:00
Michael DeHaan
1e777bb508 Fix rename error. 2014-11-04 17:27:51 -05:00
Renamed from networking/f5/bigip_facts.py (Browse further)