X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-remote.git/blobdiff_plain/315d974f414c74456adbf60eb9912a8908421939..8fa7103160f7a8e6663f88be13cb7a40e3032764:/host/usr/sbin/invirt-listvms diff --git a/host/usr/sbin/invirt-listvms b/host/usr/sbin/invirt-listvms index 890931a..c16a883 100755 --- a/host/usr/sbin/invirt-listvms +++ b/host/usr/sbin/invirt-listvms @@ -17,7 +17,7 @@ def live_vms(): name, data = get_dom(int(domid)) except (xs.Error, TypeError): continue # went down since we started - if name.startswith('d_'): + if name is not None and name.startswith('d_'): name = name[2:] vms[name] = data return vms