mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
facts: remove duplicate device vendor and model assignment (#39419)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
This commit is contained in:
parent
8d1f2ba9d9
commit
2d0891e089
1 changed files with 0 additions and 3 deletions
|
@ -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'),
|
||||||
]:
|
]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue