sdbus++: Fix generation of enums

The fix to openbmc/sdbusplus#4 broke the generation of enums, because
enums are currently not directly parsed by the cpp type conversion.

This also means that there is additional work required to support enums
nested into containers.

Fixes openbmc/sdbusplus#8

Change-Id: I4f206fa899d84128bc7463d54c5b83e40e28d61f
Signed-off-by: Christian Andersen <c.andersen@kostal.com>
diff --git a/tools/sdbusplus/property.py b/tools/sdbusplus/property.py
index 3a0bf23..435af28 100644
--- a/tools/sdbusplus/property.py
+++ b/tools/sdbusplus/property.py
@@ -144,7 +144,9 @@
         # syntax.
         result += '<'
         if entry.get('noparse'):
-            result += ", ".join(rest)
+            # Do not parse the parameter list, just use the first element
+            # of each tuple and ignore possible parameters
+            result += ", ".join([e[0] for e in rest])
         else:
             result += ", ".join(map(lambda e: self.__parse_cpp_type__(e),
                                     rest))