diff options
| author | Chuck Short <zulcss@ubuntu.com> | 2011-03-25 09:39:20 -0400 |
|---|---|---|
| committer | Chuck Short <zulcss@ubuntu.com> | 2011-03-25 09:39:20 -0400 |
| commit | c8fb0c5a16852afc98349edf89bb31afac166749 (patch) | |
| tree | 3ad251921ba72e4b9bc74a2d54b4671e63a1ac2b | |
| parent | 6ce4f9c6ae00138184e79cdcfb6f78fc3474580e (diff) | |
Revert dom check
| -rw-r--r-- | nova/virt/libvirt_conn.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/virt/libvirt_conn.py b/nova/virt/libvirt_conn.py index 840eaceeb..bfb0a75f1 100644 --- a/nova/virt/libvirt_conn.py +++ b/nova/virt/libvirt_conn.py @@ -1053,8 +1053,7 @@ class LibvirtConnection(driver.ComputeDriver): total = 0 for dom_id in self._conn.listDomainsID(): dom = self._conn.lookupByID(dom_id) - if dom is None: - total += len(dom.vcpus()[1]) + total += len(dom.vcpus()[1]) return total def get_memory_mb_used(self): |
