mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Fix for issue #627, catch both type='network' and type='udp' at the same time.
This commit is contained in:
@@ -36,7 +36,7 @@ module VagrantPlugins
|
||||
# Parse the XML and find each defined drive and network interfacee
|
||||
hd = xml.search("/domain/devices/disk[@device='disk']")
|
||||
cdrom = xml.search("/domain/devices/disk[@device='cdrom']")
|
||||
network = xml.search("/domain/devices/interface[@type='network']")
|
||||
network = xml.search("/domain/devices/interface[@type='network' or @type='udp']")
|
||||
|
||||
# Generate an array per device group and a flattened array from all of those
|
||||
devices = {"hd" => hd, "cdrom" => cdrom, "network" => network}
|
||||
|
||||
Reference in New Issue
Block a user