mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
Add sas_address and sas_device_handle to ansible disk device facts (#15201)
This commit is contained in:
parent
1211a0fa12
commit
2424d57868
1 changed files with 2 additions and 2 deletions
|
@ -1195,7 +1195,7 @@ class LinuxHardware(Hardware):
|
||||||
continue
|
continue
|
||||||
d = {}
|
d = {}
|
||||||
diskname = os.path.basename(sysdir)
|
diskname = os.path.basename(sysdir)
|
||||||
for key in ['vendor', 'model']:
|
for key in ['vendor', 'model', 'sas_address', 'sas_device_handle']:
|
||||||
d[key] = get_file_content(sysdir + "/device/" + key)
|
d[key] = get_file_content(sysdir + "/device/" + key)
|
||||||
|
|
||||||
for key,test in [ ('removable','/removable'), \
|
for key,test in [ ('removable','/removable'), \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue