From: Evan Broder <broder@mit.edu>
Date: Wed, 12 Nov 2008 06:18:03 +0000 (-0500)
Subject: Another oversight in the web remctl code
X-Git-Tag: 0.0.9~11
X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/ab0c4f8230e6bf8d0cef08a533c76ad1b00fd119?ds=sidebyside;hp=88448d9221a686ce71cb0f465888d84a1a6ece19

Another oversight in the web remctl code

svn path=/trunk/packages/invirt-web/; revision=1619
---

diff --git a/code/controls.py b/code/controls.py
index 5c856e3..bb12a1a 100644
--- a/code/controls.py
+++ b/code/controls.py
@@ -173,7 +173,7 @@ def listHost(machine):
 
 def vnctoken(machine):
     """Return a time-stamped VNC token"""
-    out, err = remctl('control', machine.name, 'vnctoken')
+    out, err = remctl('control', machine.name, 'vnctoken', err=True)
     if err:
         return None
     return out.strip()