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>
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 @@
     {"${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}",