community.general/lib/ansible/module_utils/facts/hardware
Pat McClory 5065bf169d Fix bug where ansible_lvm facts silently fails if a PV isn't in an VG (#28684)
If a PV hasn't been added to a VG i.e.:

[pmcclory@box ~]$ sudo pvs --noheadings --nosuffix --units g
  /dev/xvdb       lvm2 ---- 10.00 10.00
  /dev/xvdv1 vg0  lvm2 a--u 24.99     0

Than ansible_facts.ansible_lvm will be unset after running setup module.

The issue is that the module splits on whitespace, which causes an
indexing error when the VG column is empty.

Fix is to add the separator field and safely split on that.
2017-08-28 12:25:53 -04:00
..
__init__.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
aix.py Check / Skip cores for AIX5 Series (#25364) 2017-06-06 10:43:13 -04:00
base.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
darwin.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
dragonfly.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
freebsd.py More statvfs info for mount facts rebase 12073 (#25454) 2017-06-13 15:31:41 -04:00
hpux.py Fix HPUX cpu facts on HP Integrity VM's (#25369) 2017-06-07 13:43:54 -04:00
hurd.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
linux.py Fix bug where ansible_lvm facts silently fails if a PV isn't in an VG (#28684) 2017-08-28 12:25:53 -04:00
netbsd.py More statvfs info for mount facts rebase 12073 (#25454) 2017-06-13 15:31:41 -04:00
openbsd.py More statvfs info for mount facts rebase 12073 (#25454) 2017-06-13 15:31:41 -04:00
sunos.py More statvfs info for mount facts rebase 12073 (#25454) 2017-06-13 15:31:41 -04:00