community.general/lib/ansible
Anatoly Pugachev 19f6634353 Add support of facts gathering WWNs on AIX OS (#51704)
* Extend git commit c65909d6db "Add network fact to obtain FC WWN initiator ports"
adding support of enumerating AIX device WWN ports

$ lsdev -Cc adapter -l fcs*
fcs0 Defined   00-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs1 Defined   00-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs2 Available 04-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs3 Available 04-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)

$ lscfg -vpl fcs3 | grep 'Network Address'
        Network Address.............10000090FA551509

* no self in this code

* Two fixes:

- fix run_command execution, passing 'use_unsafe_shell=True' since we have a pipe in it ( | grep )
  if we don't set unsafe shell, it will return error on execution.

- strip new line characters at the end of WWNs.

* fix pep8 , E225 missing whitespace around operator

* use module.get_bin_path() instead of hardcoded values

* move module.get_bin_path() out of for loop

* use python string parsing instead of calling external grep

* use in operator instead of find() for simplicity and readability

* add changelog fragment
2019-04-11 00:13:33 +02:00
..
cli Collection content loading (#52194) 2019-03-28 10:41:39 -07:00
compat Have update-bundled check for updates to all bundled code 2019-02-06 13:59:55 -08:00
config Renaming azure_rm_managed_disk for consistency (#54825) 2019-04-04 12:24:03 +08:00
errors Catch sshpass authentication errors and don't retry multiple times to prevent account lockout (#50776) 2019-01-23 11:32:25 -05:00
executor Windows pslint: Re-enable PSPossibleIncorrectComparisonWithNull (#55065) 2019-04-10 15:30:38 +10:00
galaxy Update galaxy cli metadata file templates (#51398) 2019-02-22 00:54:02 -05:00
inventory Better test for cache method availability (#54740) 2019-04-09 09:32:11 -07:00
module_utils Add support of facts gathering WWNs on AIX OS (#51704) 2019-04-11 00:13:33 +02:00
modules ufw: fix default (again) (#55004) 2019-04-11 00:06:53 +02:00
parsing Collection content loading (#52194) 2019-03-28 10:41:39 -07:00
playbook Don't pollute include_variables (#54687) 2019-04-09 10:14:42 -05:00
plugins Use standard _sanitize_group_name method 2019-04-10 17:34:13 -04:00
template Extend jinja2 nested undefined support to keys/indices (#55094) 2019-04-10 10:35:31 -05:00
utils Collection content loading (#52194) 2019-03-28 10:41:39 -07:00
vars fixes for stripping (#52930) 2019-03-12 18:18:38 -04:00
__init__.py
constants.py Fine tune sanity (#53544) 2019-03-11 15:12:14 -04:00
context.py Become plugins (#50991) 2019-02-11 11:27:44 -06:00
release.py Update Ansible release version to v2.8.0a1.post0. 2019-04-04 17:59:06 -07:00