Skip to contentSkip to conversation

conga/luci/site/luci/Extensions ModelBuilder.py

Cluster-devel [email protected] 1 participant 1 message Aug 9, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: jparsons at sourceware.org 2006-08-09 21:49:30

Modified files:
luci/site/luci/Extensions: ModelBuilder.py

Log message:
Support for service info hash

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ModelBuilder.py.diff?cvsroot=cluster&r1=1.4&r2=1.5

luci/site/luci/Extensions/ModelBuilder.py +8 -0
@@ -638,6 +638,14 @@
           rg_list.append(kid)
 
     return rg_list
+
+  def getService(self, svcname):
+    services = self.getServices()
+    for service in services:
+      if service.getName() == svcname:
+        return service
+
+    return None
         
   def getXENVMs(self):
     rg_list = list()