config-tools: hide the 'update-pciids: download failed' message

Use stderror to redirect error message to subprocess.DEVNULL
to hide it when the "update pciids" command is called.

Tracked-On: #7886
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
Signed-off-by: Ziheng Li <ziheng.li@intel.com>
This commit is contained in:
zihengL1 2022-07-15 08:59:26 +08:00 committed by acrnsi-robot
parent eb8bcb06b3
commit 047a11dff3
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ def check_deps():
# Try updating pci.ids for latest PCI device descriptions
try:
logger.info("Updating pci.ids for latest PCI device descriptions.")
res = subprocess.Popen(["update-pciids", "-q"])
res = subprocess.Popen(["update-pciids", "-q"], stderr=subprocess.DEVNULL)
if res.wait() != 0:
logger.warning(f"Failed to invoke update-pciids. No functional impact is foreseen, but descriptions of PCI devices may be inaccurate.")
except Exception as e: