[PATCH] Quick fix for config-demo.py

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I guess this must have been changed and the demo not updated.  Fix the
demo so it uses the right value.

Signed-off-by: Ian Main <imain@xxxxxxxxxx>
---
 examples/config-demo.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/config-demo.py b/examples/config-demo.py
index 367d99a..c28d8b9 100644
--- a/examples/config-demo.py
+++ b/examples/config-demo.py
@@ -28,7 +28,7 @@ disk.set_type(LibvirtGConfig.DomainDiskType.FILE)
 disk.set_guest_device_type(LibvirtGConfig.DomainDiskGuestDeviceType.DISK)
 disk.set_source("/tmp/foo/bar")
 disk.set_driver_name("qemu")
-disk.set_driver_format(LibvirtGConfig.DriverType.QCOW2)
+disk.set_driver_format(LibvirtGConfig.DomainDiskFormat.QCOW2)
 disk.set_target_bus(LibvirtGConfig.DomainDiskBus.IDE)
 disk.set_target_dev("hda")
 domain.add_device(disk)
-- 
1.8.1.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]