diff options
author | Matt Spinler <spinler@us.ibm.com> | 2017-03-27 11:02:46 -0500 |
---|---|---|
committer | Matt Spinler <spinler@us.ibm.com> | 2017-03-27 11:10:24 -0500 |
commit | 2b44a6c0b282cf50c563a175535c4c32f55a81dc (patch) | |
tree | 3d9b2e0752cd4636943f12c1fd8057a30f95bbd5 | |
parent | 14476ae2e627fcc5fe8390db08b957bcfc16b912 (diff) | |
download | phosphor-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>
-rw-r--r-- | example/fan-detect.yaml | 4 | ||||
-rwxr-xr-x | gen-fan-detect-defs.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/example/fan-detect.yaml b/example/fan-detect.yaml index ad64e91..5a9e1bd 100644 --- a/example/fan-detect.yaml +++ b/example/fan-detect.yaml @@ -6,7 +6,7 @@ # detecting fans using that type.
#- [Detection method]:
-# - Fan: [A fan enclosure instance]
+# - PrettyName: [pretty name of the fan]
# Sensors: [List of sensors associated with this fan enclosure]
# - i.e) For tach feedback detection:
# The hwmon name for a detected fan rotor's tach feedback
@@ -17,7 +17,7 @@ # Example entry for a single fan's presence detected by 'Tach' feedback
#- Tach:
-# - Fan:
+# - PrettyName: fan0
# Sensors:
# - fan0
# Inventory: /system/chassis/fan0
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}", |