mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Bug #1192: Fix xpath in Datastore::contains
This commit is contained in:
parent
9b6c216aac
commit
b4862532e1
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user