mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-05 16:04:09 -07:00
In the current state of the code, the nvme partitions are returned as empty as in : "ansible_devices": { "nvme0n1": { "model": "SAMSUNG MZVLW256HEHP-000L7", "partitions": {}, The parsing of the /sys/block/<diskname> try to find a disk named like : <diskname><x> as in sda1 for sda But in the nvme context, the partition of nvme0n1 is named nvme0n1p1. This add a possible 'p' between the diskname and the partname. This patch simply add the option of having a 'p' between the diskname and the partname. The patch works on my host : "model": "INTEL SSDPEDMD400G4", "partitions": { "nvme0n1p1": { ... "size": "93.13 GB", } Fixes #38742 Signed-off-by: Erwan Velu <erwan@redhat.com> |
||
---|---|---|
.. | ||
hardware | ||
network | ||
other | ||
system | ||
virtual | ||
__init__.py | ||
ansible_collector.py | ||
collector.py | ||
compat.py | ||
default_collectors.py | ||
namespace.py | ||
sysctl.py | ||
timeout.py | ||
utils.py |