web controls.py: remove newline in listHost
authorGreg Price <price@mit.edu>
Tue, 8 Jul 2008 02:39:19 +0000 (22:39 -0400)
committerGreg Price <price@mit.edu>
Tue, 8 Jul 2008 02:39:19 +0000 (22:39 -0400)
svn path=/trunk/packages/sipb-xen-www/; revision=666

code/controls.py

index 1d9b824..b946666 100644 (file)
@@ -201,7 +201,7 @@ def listHost(machine):
     out, err = remctl('control', machine.name, 'listhost', err=True)
     if err:
         return None
-    return out
+    return out.strip()
 
 def deleteVM(machine):
     """Delete a VM."""