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

Signed-off-by: Jorge Lobo <jlobo@opennebula.io>
(cherry picked from commit 23be44682a)
This commit is contained in:
Jorge Miguel Lobo Escalona authored and Tino Vazquez committed 2020-10-06 19:06:13 +02:00
1 parent d2f29314b1
commit 4656ef202e
1 file changed
+1 -2
+1 -2
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)