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

feature #4065: fix bug generating gate token

(cherry picked from commit 9185474f2eb0754ac5b8a4bb5d0970a78981023e)
This commit is contained in:
Javi Fontan 2015-11-10 15:08:52 +01:00 committed by Tino Vazquez
parent b7698cb99d
commit 397375d1ab

View File

@ -1491,7 +1491,7 @@ private
if onegate_token_flag and onegate_token_flag.text == "YES"
# Create the OneGate token string
vmid_str = xml.root.elements["/VM/ID"].text
stime_str = xml.root.elements["//HISTORY[SEQ=0]/STIME"].text
stime_str = xml.root.elements["/VM/STIME"].text
str_to_encrypt = "#{vmid_str}:#{stime_str}"
user_id = xml.root.elements['//CREATED_BY'].text