mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
facts: remove duplicate device vendor and model assignment (#39419)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
This commit is contained in:
committed by
Adam Miller
parent
8d1f2ba9d9
commit
2d0891e089
@@ -602,9 +602,6 @@ class LinuxHardware(Hardware):
|
|||||||
if serial:
|
if serial:
|
||||||
d['serial'] = serial.group(1)
|
d['serial'] = serial.group(1)
|
||||||
|
|
||||||
for key in ['vendor', 'model']:
|
|
||||||
d[key] = get_file_content(sysdir + "/device/" + key)
|
|
||||||
|
|
||||||
for key, test in [('removable', '/removable'),
|
for key, test in [('removable', '/removable'),
|
||||||
('support_discard', '/queue/discard_granularity'),
|
('support_discard', '/queue/discard_granularity'),
|
||||||
]:
|
]:
|
||||||
|
|||||||
Reference in New Issue
Block a user