Fixed bug 912701
Add an check to the list_instances method so that the domains whose ID is 0 are not listed, since this is reserved in libvirt for hypervisors. Refers to https://lists.launchpad.net/openstack/msg06699.html Change-Id: I55f6f370cbaf8bd2254e08afad8b36d833726817
This commit is contained in:
@@ -433,7 +433,7 @@ class Connection(object):
|
||||
self._uri = uri
|
||||
self._vms = {}
|
||||
self._running_vms = {}
|
||||
self._id_counter = 0
|
||||
self._id_counter = 1 # libvirt reserves 0 for the hypervisor.
|
||||
self._nwfilters = {}
|
||||
|
||||
def _add_filter(self, nwfilter):
|
||||
|
||||
Reference in New Issue
Block a user