Make sure we update xml on dtb addition

This commit is contained in:
Gerben Meijer 2016-03-23 11:02:18 +01:00
parent dd7133fdc0
commit 64af328879

View File

@ -229,6 +229,7 @@ module VagrantPlugins
if config.dtb
dtb = REXML::XPath.first(xml_descr,'/domain/os/dtb')
if dtb.nil?
descr_changed = true
dtb = REXML::Element.new('dtb', REXML::XPath.first(xml_descr,'/domain/os'))
dtb.text = config.dtb
else