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

B #5019: work with remote oned (#291)

Signed-off-by: Jorge Lobo <jlobo@opennebula.io>
(cherry picked from commit 23be44682a268cc3961b69b9f5ddd62248e842c7)
This commit is contained in:
Jorge Miguel Lobo Escalona 2020-10-06 19:04:58 +02:00 committed by Tino Vazquez
parent d2f29314b1
commit 4656ef202e
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE

View File

@ -362,8 +362,7 @@ helpers do
logger.info { 'Unauthorized login attempt' }
return [401, '']
end
client = $cloud_auth.client(result)
client = $cloud_auth.client(result, $conf[:one_xmlrpc])
user_id = OpenNebula::User::SELF
user = OpenNebula::User.new_with_id(user_id, client)