Browse Source

Fixing escape for brackets ([]) in AMD GPU reported name

Signed-off-by: Luke Wilson <luke.wilson@dell.com>
Luke Wilson 4 years ago
parent
commit
c5836d642e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      roles/common/files/inventory.fact

+ 1 - 1
roles/common/files/inventory.fact

@@ -6,7 +6,7 @@ lspci > $INVENTORY
 NVIDIA_GPU=$(cat $INVENTORY | grep -i nvidia | wc -l)
 XILINX_FPGA=$(cat $INVENTORY | grep "Processing accelerators: Xilinx Corporation Device" | wc -l)
 INTEL_A10_FPGA=$(cat $INVENTORY | grep "Processing accelerators: Intel Corporation Device" | wc -l)
-AMD_GPU=$(cat $INVENTORY | grep "Display controller: Advanced Micro Devices, Inc. [AMD/ATI]" | wc -l)
+AMD_GPU=$(cat $INVENTORY | grep "Display controller: Advanced Micro Devices, Inc. \[AMD/ATI\]" | wc -l)
 
 cat << EOF
 {