Commit 944637c9 by Karsa Zoltán István

fix vmdriver test

parent b036bf5b
#!/usr/bin/env python #!/usr/bin/env python
import os
os.environ.setdefault("LIBVIRT_TEST", "True")
import vm import vm
import vmdriver import vmdriver
# import logging # import logging
......
...@@ -192,6 +192,7 @@ class VMDisk: ...@@ -192,6 +192,7 @@ class VMDisk:
target_device = None target_device = None
def __init__(self, def __init__(self,
name,
source, source,
disk_type="file", disk_type="file",
disk_device="disk", disk_device="disk",
...@@ -200,6 +201,7 @@ class VMDisk: ...@@ -200,6 +201,7 @@ class VMDisk:
driver_cache="none", driver_cache="none",
target_device="vda", target_device="vda",
target_bus="virtio"): target_bus="virtio"):
self.name = name
self.source = source self.source = source
self.disk_type = disk_type self.disk_type = disk_type
self.disk_device = disk_device self.disk_device = disk_device
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment