From 2d0891e0897159d0010afa9be18d1421fcab47c2 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 23 May 2018 22:06:46 -0400 Subject: [PATCH] facts: remove duplicate device vendor and model assignment (#39419) Signed-off-by: Alfredo Deza --- lib/ansible/module_utils/facts/hardware/linux.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/ansible/module_utils/facts/hardware/linux.py b/lib/ansible/module_utils/facts/hardware/linux.py index 272823b518..b6563cd4f2 100644 --- a/lib/ansible/module_utils/facts/hardware/linux.py +++ b/lib/ansible/module_utils/facts/hardware/linux.py @@ -602,9 +602,6 @@ class LinuxHardware(Hardware): if serial: d['serial'] = serial.group(1) - for key in ['vendor', 'model']: - d[key] = get_file_content(sysdir + "/device/" + key) - for key, test in [('removable', '/removable'), ('support_discard', '/queue/discard_granularity'), ]: