mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-17 15:51:34 +00:00
misc: refine upgrade script
There is some issue when use upgrade to update some old xml version to release_3.1, this patch modify the upgrade script to fix these issue. Tracked-On: #6690 Signed-off-by: Chenli Wei <chenli.wei@intel.com>
This commit is contained in:
parent
8fe8b15a02
commit
7a99e1b1d8
@ -316,6 +316,7 @@ class VirtioDevices(object):
|
||||
interface_name = network.xpath("./interface_name")[0].text if network.xpath("./interface_name") else None
|
||||
self.networks.append((virtio_framework, interface_name))
|
||||
|
||||
if len(virtio_device_node.xpath("./input")) > 0:
|
||||
if virtio_device_node.xpath("./input")[0].text is not None:
|
||||
for input in virtio_device_node.xpath("./input"):
|
||||
self.inputs.append((None, input.text))
|
||||
|
Loading…
Reference in New Issue
Block a user