Skip to content

Commit

Permalink
running create_local_disk
Browse files Browse the repository at this point in the history
  • Loading branch information
rh-jugraham committed Oct 16, 2024
1 parent b9aa15f commit fac88f4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

from virttest.libvirt_xml import vm_xml
from virttest.utils_libvirt import libvirt_disk
from virttest.utils_test import libvirt
from virttest.staging import service


Expand Down Expand Up @@ -82,6 +83,10 @@ def create_customized_disk(params):
source_dict.update({"file": source_file})
disk_src_dict = {"attrs": source_dict}

libvirt.create_local_disk("file", source_file, 1, disk_format="qcow2")

cleanup_files.append(source_file)

customized_disk = libvirt_disk.create_primitive_disk_xml(
type_name, disk_device,
device_target, device_bus,
Expand Down

0 comments on commit fac88f4

Please sign in to comment.