Skip to content

Commit 03939d6

Browse files
committed
Merge pull request autotest#667 from rbian/fullxml_fix
Skip snapshot for cdrom disk.
2 parents 3936671 + 1173080 commit 03939d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libvirt/tests/src/virsh_cmd/domain/virsh_blockpull.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ def make_disk_snapshot():
7272
for src_disk_xml in disks:
7373
disk_xml = snap_xml.SnapDiskXML()
7474
disk_xml.xmltreefile = src_disk_xml.xmltreefile
75+
76+
# Skip cdrom
77+
if disk_xml.device == "cdrom":
78+
continue
7579
del disk_xml.device
7680
del disk_xml.address
7781
disk_xml.snapshot = "external"

0 commit comments

Comments
 (0)