[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] conga/luci/site/luci/Extensions cluster_adapte ...



CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	jparsons sourceware org	2007-01-30 21:21:36

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

Log message:
	indent errors

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

--- conga/luci/site/luci/Extensions/cluster_adapters.py	2007/01/30 21:05:15	1.216
+++ conga/luci/site/luci/Extensions/cluster_adapters.py	2007/01/30 21:21:35	1.217
@@ -4734,27 +4734,27 @@
 
   map['formurl'] = urlstring
 
-	try:
-		xenvmname = request['servicename']
-	except:
-		try:
-			xenvmname = request.form['servicename']
-		except:
-			luci_log.debug_verbose('servicename is missing from request')
-			return map
+  try:
+    xenvmname = request['servicename']
+  except:
+    try:
+      xenvmname = request.form['servicename']
+    except:
+      luci_log.debug_verbose('servicename is missing from request')
+      return map
 
-	try:
-		xenvm = model.retrieveXenVMsByName(xenvmname)
-	except:
-		luci_log.debug('An error occurred while attempting to get VM %s' \
-			% xenvmname)
-		return map
+  try:
+    xenvm = model.retrieveXenVMsByName(xenvmname)
+  except:
+    luci_log.debug('An error occurred while attempting to get VM %s' \
+    % xenvmname)
+    return map
 
-	attrs= xenvm.getAttributes()
+  attrs= xenvm.getAttributes()
   keys = attrs.keys()
   for key in keys:
     map[key] = attrs[key]
-	return map
+  return map
 
 def isClusterBusy(self, req):
   items = None


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]