summaryrefslogtreecommitdiffstats
path: root/gen-fan-detect-defs.py
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2017-03-27 11:02:46 -0500
committerMatt Spinler <spinler@us.ibm.com>2017-03-27 11:10:24 -0500
commit2b44a6c0b282cf50c563a175535c4c32f55a81dc (patch)
tree3d9b2e0752cd4636943f12c1fd8057a30f95bbd5 /gen-fan-detect-defs.py
parent14476ae2e627fcc5fe8390db08b957bcfc16b912 (diff)
downloadphosphor-fan-presence-2b44a6c0b282cf50c563a175535c4c32f55a81dc.tar.gz
phosphor-fan-presence-2b44a6c0b282cf50c563a175535c4c32f55a81dc.zip
Use PrettyName YAML field instead of Description
When generating fan_detect_defs.cpp, pull in the PrettyName YAML property instead of Description. Change-Id: I9db6bd09309874a5b6b6cbb062c6cd3a9ddcaa5d Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'gen-fan-detect-defs.py')
-rwxr-xr-xgen-fan-detect-defs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gen-fan-detect-defs.py b/gen-fan-detect-defs.py
index 4fd0d4a..1bc980a 100755
--- a/gen-fan-detect-defs.py
+++ b/gen-fan-detect-defs.py
@@ -23,7 +23,7 @@ fanDetectMap = {
{"${m}", {
%for fan in methods[method]:
std::make_tuple("${fan['Inventory']}",
- "${fan['Description']}",
+ "${fan['PrettyName']}",
std::vector<std::string>{
%for s in fan['Sensors']:
"${s}",
OpenPOWER on IntegriCloud