1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-25 02:50:08 +03:00

Feature #4217: Fix bug in onedb upgrade, wrong APP_CLONES path

This commit is contained in:
Carlos Martín 2016-03-17 16:06:41 +01:00
parent 664de7c462
commit aa31934f40

View File

@ -148,7 +148,7 @@ module Migrator
@db.fetch("SELECT * FROM old_image_pool") do |row|
doc = Nokogiri::XML(row[:body],nil,NOKOGIRI_ENCODING){|c| c.default_xml.noblanks}
doc.at_xpath("/IMAGE/TEMPLATE").add_child(doc.create_element("APP_CLONES"))
doc.root.add_child(doc.create_element("APP_CLONES"))
@db[:image_pool].insert(
:oid => row[:oid],