mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 07:35:22 +00:00
take over precedense sata to scsi
This commit is contained in:
parent
97acbd9843
commit
4abf62702a
1 changed files with 2 additions and 2 deletions
|
@ -296,10 +296,10 @@ class wvmCreate(wvmConnect):
|
|||
<readonly/>"""
|
||||
if "ide" in dom_caps["disk_bus"]:
|
||||
xml += """<target dev='hd%s' bus='%s'/>""" % (hd_disk_letters.pop(0), "ide")
|
||||
elif "sata" in dom_caps["disk_bus"]:
|
||||
xml += """<target dev='sd%s' bus='%s'/>""" % (sd_disk_letters.pop(0), "sata")
|
||||
elif "scsi" in dom_caps["disk_bus"]:
|
||||
xml += """<target dev='sd%s' bus='%s'/>""" % (sd_disk_letters.pop(0), "scsi")
|
||||
elif "sata" in dom_caps["disk_bus"]:
|
||||
xml += """<target dev='sd%s' bus='%s'/>""" % (sd_disk_letters.pop(0), "sata")
|
||||
else:
|
||||
xml += """<target dev='vd%s' bus='%s'/>""" % (vd_disk_letters.pop(0), "virtio")
|
||||
xml += """</disk>"""
|
||||
|
|
Loading…
Reference in a new issue