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

Bug #1192: Fix xpath in Datastore::contains

(cherry picked from commit b4862532e15c9c36389c9ff533f77bc3ffdcadab)
This commit is contained in:
Carlos Martín 2012-03-30 12:36:42 +02:00
parent 8984b1fbb5
commit c4a2ba6dd5

View File

@ -129,7 +129,7 @@ module OpenNebula
#This doesn't work in ruby 1.8.5
#return self["DATASTORE/ID[.=#{uid}]"] != nil
id_array = retrieve_elements('DATASTORE/ID')
id_array = retrieve_elements('IMAGES/ID')
return id_array != nil && id_array.include?(uid.to_s)
end