mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Bug #1193: Fix onedb migrator 3.3.0_to_3.3.80.rb when IMAGE/SOURCE is empty
(cherry picked from commit 3d347d024edc45e6b99c3c0a121062d7fae20961)
This commit is contained in:
parent
5bbc54d250
commit
06f96f8f9b
@ -234,6 +234,11 @@ module Migrator
|
||||
# Update SOURCE
|
||||
doc.root.each_element("SOURCE") { |e|
|
||||
previous_source = e.text
|
||||
|
||||
if previous_source.nil?
|
||||
next
|
||||
end
|
||||
|
||||
hash = previous_source.split('/')[-1]
|
||||
|
||||
if ( hash.length == 32 && hash =~ /^[0-9A-F]+$/i )
|
||||
|
Loading…
x
Reference in New Issue
Block a user