mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
inspection: rename vmmInspection._process to _inspect_vm
It fits more the actual job of the function.
This commit is contained in:
parent
ad47e80ec2
commit
0c019fb8e3
@ -149,7 +149,7 @@ class vmmInspection(vmmGObject):
|
|||||||
# Whether success or failure, we've "seen" this VM now.
|
# Whether success or failure, we've "seen" this VM now.
|
||||||
self._vmseen[vmuuid] = True
|
self._vmseen[vmuuid] = True
|
||||||
try:
|
try:
|
||||||
data = self._process(conn, vm)
|
data = self._inspect_vm(conn, vm)
|
||||||
if data:
|
if data:
|
||||||
self._set_vm_inspection_data(vm, data)
|
self._set_vm_inspection_data(vm, data)
|
||||||
else:
|
else:
|
||||||
@ -160,7 +160,7 @@ class vmmInspection(vmmGObject):
|
|||||||
except:
|
except:
|
||||||
logging.exception("%s: exception while processing", prettyvm)
|
logging.exception("%s: exception while processing", prettyvm)
|
||||||
|
|
||||||
def _process(self, conn, vm):
|
def _inspect_vm(self, conn, vm):
|
||||||
if re.search(r"^guestfs-", vm.get_name()):
|
if re.search(r"^guestfs-", vm.get_name()):
|
||||||
logging.debug("ignore libvirt/guestfs temporary VM %s",
|
logging.debug("ignore libvirt/guestfs temporary VM %s",
|
||||||
vm.get_name())
|
vm.get_name())
|
||||||
|
Loading…
Reference in New Issue
Block a user