Code

Added 90_gosa.conf
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 13 Nov 2009 14:22:04 +0000 (14:22 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 13 Nov 2009 14:22:04 +0000 (14:22 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14812 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/contrib/90_gosa.conf [new file with mode: 0644]

diff --git a/gosa-si/contrib/90_gosa.conf b/gosa-si/contrib/90_gosa.conf
new file mode 100644 (file)
index 0000000..cb957c9
--- /dev/null
@@ -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