mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
inspection: exclude cdrom from vm inspection
Can cause inspection to fail if cdrom is the first device See: https://bugzilla.redhat.com/show_bug.cgi?id=752552 (crobinso: added Lars to AUTHORS, expanded commit msg)
This commit is contained in:
parent
a712a7b32e
commit
9d2119ab3e
1
AUTHORS
1
AUTHORS
@ -71,6 +71,7 @@ Further patches have been submitted by:
|
||||
Gerhard Stenzel <gerhard-dot-stenzel-at-de-dot-ibm-dot-com>
|
||||
Yuri Chornoivan <yurchor-at-ukr-dot-net>
|
||||
Miklos Vajna <vmiklos-at-frugalware-dot-org>
|
||||
Lars Sjostrom <lars-at-radicore-dot-se>
|
||||
|
||||
<...send a patch & get your name here...>
|
||||
|
||||
|
@ -140,7 +140,8 @@ class vmmInspection(vmmGObject):
|
||||
disks = []
|
||||
for disk in vm.get_disk_devices():
|
||||
if (disk.path and
|
||||
(disk.type == "block" or disk.type == "file")):
|
||||
(disk.type == "block" or disk.type == "file") and
|
||||
not disk.device == "cdrom"):
|
||||
disks.append(disk)
|
||||
|
||||
if not disks:
|
||||
|
Loading…
Reference in New Issue
Block a user