aboutsummaryrefslogtreecommitdiff
path: root/h-client/hlibrary.py
diff options
context:
space:
mode:
Diffstat (limited to 'h-client/hlibrary.py')
-rw-r--r--h-client/hlibrary.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/h-client/hlibrary.py b/h-client/hlibrary.py
index e8b577b..85faca6 100644
--- a/h-client/hlibrary.py
+++ b/h-client/hlibrary.py
@@ -569,6 +569,14 @@ class Client:
)
+ #get the list of types
+ def getTypes(self):
+ types = []
+ for Class,struct in self._types.iteritems():
+ if struct['type'] not in types:
+ types.append(struct['type'])
+ return types
+
#check if a distro code is allowed or not
def distroIsAllowed(self,distroCode):
allowedDistroCodes = self.allowedDistros.keys()