fix a race based on rwbarton's error message
authorGreg Price <price@mit.edu>
Tue, 24 Jun 2008 04:35:17 +0000 (00:35 -0400)
committerGreg Price <price@mit.edu>
Tue, 24 Jun 2008 04:35:17 +0000 (00:35 -0400)
svn path=/trunk/packages/sipb-xen-remctl-auto/; revision=652

files/usr/sbin/sipb-xen-listvms

index 7f6cb39..85e9713 100755 (executable)
@@ -14,7 +14,10 @@ def live_vms():
     vms = dict()
 
     for domid in domids:
     vms = dict()
 
     for domid in domids:
-        name, data = get_dom(int(domid))
+        try:
+            name, data = get_dom(int(domid))
+        except ValueError:
+            pass # went down since we started
         if name.startswith('d_'):
             name = name[2:]
             vms[name] = data
         if name.startswith('d_'):
             name = name[2:]
             vms[name] = data