diff --git a/libvirt-python/__main__.py b/libvirt-python/__main__.py index eaea592..3eb24f2 100644 --- a/libvirt-python/__main__.py +++ b/libvirt-python/__main__.py @@ -19,7 +19,7 @@ baseimg = lv.Volume("base-image", volume = lv.Volume("disk", base_volume_id = baseimg.id, pool = pool.name, - size = config.require("disksize") * 1024 ** 3 + size = int(config.require("disksize")) * 1024 ** 3 ) # Stream configuration files @@ -39,7 +39,7 @@ vm = lv.Domain("debian11", ) ], cloudinit = cloudinit.id, disks = [ lv.DomainDiskArgs(volume_id = volume.id) ], - memory = config.require("memory"), + memory = int(config.require("memory")), network_interfaces = [ lv.DomainNetworkInterfaceArgs( network_name = "default", wait_for_lease = True