From 9c643be6bc7e7eaadeb5d7af6628e64db170a4c0 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 13 Nov 2009 14:22:04 +0000 Subject: [PATCH] Added 90_gosa.conf git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14812 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/contrib/90_gosa.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 gosa-si/contrib/90_gosa.conf 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 -- 2.30.2