From: cajus Date: Fri, 13 Nov 2009 14:22:04 +0000 (+0000) Subject: Added 90_gosa.conf X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9c643be6bc7e7eaadeb5d7af6628e64db170a4c0;p=gosa.git Added 90_gosa.conf git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14812 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/contrib/90_gosa.conf b/gosa-si/contrib/90_gosa.conf new file mode 100644 index 000000000..cb957c94a --- /dev/null +++ b/gosa-si/contrib/90_gosa.conf @@ -0,0 +1,13 @@ +''' Override built in function to get clients ''' + +def getClients_listOfHashes(self, serverId=None, depotIds=[], groupId=None, productId=None, installationStatus=None, actionRequest=None, productVersion=None, packageVersion=None): + + # Get backend instance and load client list + bi= self.backends[self.clientManagingBackend]['instance'] + clients= bi.getClients_listOfHashes(serverId, depotIds, groupId, productId, installationStatus, actionRequest, productVersion, packageVersion) + + # Get MAC and IP for every client + for client in clients: + client['macAddress']= bi.getMacAddress(client['hostId']) + + return clients