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

M #-: Fix xpath for OpenNebula marketplace driver

(cherry picked from commit b27b0d43ca4d7f95f217a773d5329f3ebf31fd8d)
This commit is contained in:
Ruben S. Montero 2024-02-01 12:09:13 +01:00
parent 109ad8fe35
commit 5926ec076b
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -250,11 +250,12 @@ end
################################################################################
begin
drv_message64 = STDIN.read
drv_message64 = ARGV[0]
drv_message = Base64.decode64(drv_message64)
doc = REXML::Document.new(drv_message).root
url = doc.elements['/MARKETPLACE/TEMPLATE/ENDPOINT'].text rescue nil
url = doc.elements['//MARKETPLACE/TEMPLATE/ENDPOINT'].text rescue nil
rescue StandardError
nil
end